CS Time/TNA Documents

username password

Using AddClocking to deduct breaks

    Table of contents
    No headers

    This is a very simple example on how to use the AddClocking function.

    Example:  Your employees work flexi time so they can start work at any time.  They also do not clock out for breaks, but you need to subtract a 30 minute unpaid break after five hours of work.  Due to different allowances during the day, it is not as simple as just deducting 30 minutes from a specific time category.


    At Before Daily Processing

    if numclockings = 2
       if LCT - FCT > 5:35
          AddClocking(processdate,FirstClockingTime + 5:00,FirstClockingLineTime + 5:00,'O')
          AddClocking(processdate,FirstClockingTime + 5:30,FirstClockingLineTime + 5:30,'I')


    The AddClocking function must be used at the at before daily processing embed point. At this point we test that a) the employee only clocked twice and b) he worked more than 5:35 (not 5:00 as we need to still deduct 30 minutes and we add in a 5 minute grace period on top of that). Note: FCT is the abbreviation for the FirstClockingTime variable and LCT for LastClockingTime.

    Next you add the Out clocking five hours after the first In clocking and then add the In clocking 30 minutes later.

    Please note: These processor generated clockings are only visible when viewing the daily hours i.e. they won't be printed on any reports and will not be shown when viewing employee clockings.


    Permalink:  http://tinyurl.com/n6vyujm

    Page last modified 14:00, 9 Feb 2012 by Careen CS Time/TNA Documents > Macro Scripts > Examples > Using AddClocking to deduct breaks


    You must login to post a comment.
    Attach file


    Powered by MindTouch Core