This scripting puts an alert on the time card and would go in the PayRateScript box and SplitPostReportingDate box as labeled below on each of the scripts:
if (islasttoday) {SpreadofHours = (((val (reportingdate.spread) / 3600) * 100)\1)/100;}
if (islasttoday AND SpreadofHours > 10) {hours = hours + 1; addalert ("Spread of hours over 10");}
This scripting will add an additional hour of "Spread of Hours" if the spread of hours is greater than or equal to 10.
//AddEntryScript if(val(reportingdate.spread)/3600 >= 10){ addentry("hours", 1, "Spread of Hours"); } | |