PdcOnline.ClockOut

From External Bemet Wiki
Jump to navigation Jump to search

Declaration

ClockOut(PersonnelNo, BadgeNo, TooEarlyReason as String) as Boolean

Description

Returns true or false whether the Employee succesfully clocked out

Notes

This method executes the clockout command in the Shop floor registration

Code example

This code example clocks the selected employee out.

  dim objOnline

  set objOnline = PDC.ProductRegistration.Online
  if IsValid(objOnline) then
    if objOnline.ClockOut("1074", "", "WENT_HOME_EARLY") then
      msgbox "Clocked Out"
    else
      msgbox PDC.LastError
    end if
  end if

Availability

Available since 2014 (From version 4.3 onwards).