Scripting - Tutorials & Tips

touches Function - TWP

Touches basically says, if something "touches" (crosses into) this time span or window, then do something. Touches is setup so that it takes two arguments contained within a parentheses. touches(time, time) ...

Read Article

Touches in TimeWorks vs TimeWorksPlus

The touches keyword operates a little differently in TimeWorks than it does in TimeWorksPlus. This is important to remember when transferring scripts from one platform to the other. The difference is that touc...

Read Article

Fixing Leading and Trailing Spaces in Punch Categories - TWP

If you mistakenly have leading spaces preceding your category name in the Punch Categories rule, your payroll export may not correctly convert the category to the correct pay code. If time cards already have en...

Read Article

AddEntry Script Rule

The AddEntry scripting rule creates an "hours" or "dollar amount" entry the time card based on a script. To do this, you write a script using the AddEntry keyword. This keyword can only be used in the AddEntry ...

Read Article

Split Post Reporting Date

What most consider to be the tomorrow rule is that any punch that crosses midnight hours should be split at midnight and hours that are after midnight be put on the following day. Employee clocks in at 10:00...

Read Article

Rounding to a Specific Decimal Place - TWP

This article does not deal with rounding punch times per se, instead it deals with rounding decimals for any numbers used in the system, through scripting. For instance, if you are calculating an amount and wan...

Read Article

Real Time Alert on Time Card / Using linetonow Keyword

The keyword linetonow now allows the Todays Entries to have alerts based on what time it is currently. You can use the keyword to find out how long they have been clocked in for: if(outispresent = false and i...

Read Article