Employees Subroutines

Employee records, timesheets, labor history

Subroutine count:

Table of Contents


VB_EMPLOYEE.PUBLIC.REV1

Signature: SUBROUTINE VB_EMPLOYEE.PUBLIC(CO,REQTYPE,EMPNO,E1287REC,ADDFLAG,MESSAGE)

Source: S:\LinuxShare\pro3prog\VBBASE\VB_EMPLOYEE.PUBLIC.REV1

PropertyValue
Status[+] analyzed
Safety[COND] conditional
PatternCRUD
Args6
DescriptionSave or soft-delete employee public records in EMPLOYEE.PUBLIC.1287 based on REQTYPE. Supports add, update, and delete operations with audit trail logging.
Dangerous REQTYPEDELETE, SAVE

Arguments:

IndexNameDirectionDescription
0COinCompany number
1REQTYPEinRequest type: ‘DELETE’ to soft-delete (sets field 9 to ‘N’), any other value to add/update
2EMPNOinEmployee number (record key)
3E1287RECinEmployee public record data as dynamic array (written to EMPLOYEE.PUBLIC.1287 on save)
4ADDFLAGinAdd flag: true if adding a new record, false if updating existing
5MESSAGEoutResult message: ‘WRITE SUCCEEDED’ or ‘DELETE SUCCEEDED’

Tables Written: EMPLOYEE.PUBLIC.1287

API Call Example:

POST /api/admin/subroutine/call
{
    "name":  "VB_EMPLOYEE.PUBLIC.REV1",
    "args":  {
                 "0":  "",
                 "1":  "",
                 "2":  "",
                 "3":  "",
                 "4":  ""
             }
}


Last updated: 2026-02-05 11:29 PM