Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

TSE FIELD

SA FIELD

NOTES

TimeSheetId

 

Retrieve Time Sheet for specified Service Resource which has a StartDate before TODAY and an EndDate after TODAY.

If a Time Sheet does not exist that meets this criteria, then create a new Time Sheet.

Service_Appointment__c

ID

 

StartTime

ActualStartTime

 

EndTime

ActualEndTime

 

Unit_Variance__c

 

Calculate the variance between Scheduled Date/Times and Actual Date/Times.

(SchedEndTime - SchedStartTime)

-

(ActualEndTime - ActualStartTime)

= Unit_Variance__c

Status

 

When a Time Sheet Entry is created, we will check if Unit_Variance__c <= Approval Percentage Threshold.

Set to Approved, if Unit_Variance__c <= Service Appointment Tolerance Setting OR to Submitted if Unit_Variance__c > Service Appointment Tolerance Setting.

Created_by_CheckOut__c

 

TRUE

Time Sheet Entry Types

There are different types of TSEs created as part of the Batch process. They are defined by Work Type where applicable, and a general time-based TSE.

Work Type

Details

Time Based

Based off the Actual Start Time and Actual End Time of the related Service Appointment

Sleepover

Created if the Work Order has a related WorkOrderLineItem Where Sleepover__c = True. This will default to a duration of 8 hours.

Kms for reimbursement

Created if the Work Order has a related WorkOrderLineItem attributed to Travel and ServiceAppointment Travel fields are not NULL.