Skip to main content
Question

Need to combine multiple time cards in a single entry for the correct calculation.

  • February 24, 2018
  • 0 replies
  • 52 views

Hi team,

We have an application where one associate fills multiple timecards for a day. Now, I want to create one timecard which will show the total hours of all the time cards. It is because of to calculate of the actual pay of those time cards.

If we pay one associate on hourly basis then, then there is no problem to calculate the rate if they fill multiple time cards or a single time card.

Problem is when we pay associate on daily basis then if they fill 3 time cards of today like one is 5 hours, 2 hours and 1 hours and their daily rate is $100 then, system calculate rate $300 for today because for some reason we want to pay full rate whether they work for 3 hours or 8 hours.

Hope the above explanation clears everything.

Please let me know if you need any further information.

Thanks,

Gaurav

Any update?

Can you state your current relevant tables and their relationships?

You will need to have a table called Employee Dates where the Key field is a concatenation of the [Record ID# of Employee] and the [Date]. 

List("-", ToText([Record ID# of Employee], ToText([Date])) 

 If you like you can actually create the formula field and make it the Key field by using the API_SetKeyField&fid=10 API typed into the URL bar.

Then set up an Action to ensure that for every time entry, the action will fire if the Key field does not exists already for that Employee and date.

I do that by making a field Key field exists? with a formula value of true and look that up down to Time Entries, and fire the Acton of the Ket does not exists.

Then you will be able to make summary fields up to that Employee Dates to have the data available to know how many entries there were that date.