| Scripting - Approval for Pay Only items | | Question | | Is there a way to look at the "Dollars Only" field on the time records. I can test the record for "ispayonly" and it will return either a true or false value based on "dollars only" entries. But I need to look at the content of this field.
Example: if (category = "StandBy" and DOLLARSONLY <> 200.00) {exception = "Please Verify that StandBy Dollars are $200 " }
DOLLARSONLY would be the actual field name for that "ispayonly" is testing. In this case, if it is StandBy pay, the amount that should only be $200. Anything else would trigger the exception.
Thanks!
| Answer | We can do something similar were we can have the system flag any dollar amount only entries and have it only be cleared by a supervisors approval by changing a setting and writing a script to trigger this. The article on this is here Scripting - Supervisor Electronic Approval (Exception Script), and the script in the article just needs to be changed to:
if(ispayonly = true) { if (exceptionapproved = false) { exception = "Needs Supervisor Approval" }}
This script means that if there is a pay/dollar entry it will flag an exception on the punch and will not remove the flag unless a supervisor edits the punch and puts a check mark in the "Exception Approval" box and saves the the punch.
| Back to Search Results |
|