TPSSTD script: Time entry
MAJFLGTPS: Update of the time tracking flags in the employee payslips
If time related to an employee is modified although said employee has an existing payslip, the status of the payslip moves to "Entered" and all the time tracking flags are no longer selected. The different values are the following: Automatic generation, Time summary, Variable update, Analytical update.
Context and operating method
Different call cases
This entry point is called during the various time entry operations, after entry has been saved. The OK variable is set to 1 before the call to the entry point. In the entry point, the OK variable can be set to 0 so that the status and the time tracking are not updated in the payslip.
Available variables and masks
Class [M] of the time entry screen.
Open tables
Table |
Significant |
Table title |
PERIOD [PEO] |
Yes |
Contains the extraction period of the pay date. |
EMPLOID [ID] |
Yes |
Employee's civil status |
EMPLOENT [ENT] |
Yes |
Employee arrivals/departures |
TIMEMP [TIP] |
Yes |
Employee working times |
TIMANA [TIA] |
Yes |
Analytical time distribution |
GRISE: A key area of the screen is disabled
Use this entry point to disable a field that has been added to the TPSSTD screen to replace the pay date field. For example: Entry of the month and year instead of the pay date.
Context and operating method
Different call cases
This entry point is called when time lines are entered or modified. The pay date and employee ID are then disabled. Use this entry point to disable another field that replaces the pay date field.
Available variables and masks
Class [M] of the time entry screen.
Open tables
Table |
Significant |
Table title |
PERIOD [PEO] |
Yes |
Contains the extraction period of the pay date. |
EMPLOID [ID] |
Yes |
Employee's civil status |
EMPLOENT [ENT] |
Yes |
Employee arrivals/departures |
TIMEMP [TIP] |
Yes |
Employee working times |
TIMANA [TIA] |
Yes |
Analytical time distribution |
DEGRISE: A key field on the screen is reactivated
Use this entry point to reactivate a field that has been added to the TPSSTD screen to replace the pay date field. For example: Entry of the month and year instead of the pay date.
Context and operating method
Different call cases
This entry point is called on saving or interrupting a time entry. The pay date and employee ID are then reactivated. Use this entry point to reactivate another field that replaces the pay date.
Available variables and masks
Class [M] of the time entry screen.
Open tables
Table |
Significant |
Table title |
PERIOD [PEO] |
Yes |
Contains the extraction period of the pay date. |
EMPLOID [ID] |
Yes |
Employee's civil status |
EMPLOENT [ENT] |
Yes |
Employee arrivals/departures |
TIMEMP [TIP] |
Yes |
Employee working times |
TIMANA [TIA] |
Yes |
Analytical time distribution |
WRKSUP: Line deletion workflow
Use this entry point to manage a specific workflow on time lines that are deleted.
Context and operating method
Different call cases
This entry point is called on saving a time entry. For each deleted time line, this entry point is called to disconnect the standard workflow and set up a specific one. As standard, a single workflow containing all the line modifications is sent.
Available variables and masks
Class [M] of the time entry screen.
Use the NBWRK variable to disconnect the standard workflow if the variable is set to 0.
Use the GWRK variables to store the workflow text lines.
Open tables
Table |
Significant |
Table title |
PERIOD [PEO] |
Yes |
Contains the extraction period of the pay date. |
EMPLOID [ID] |
Yes |
Employee's civil status |
EMPLOENT [ENT] |
Yes |
Employee arrivals/departures |
TIMEMP [TIP] |
Yes |
Employee working times |
TIMANA [TIA] |
Yes |
Analytical time distribution |
WRKCREMOD: Line deletion workflow
Use this entry point to manage a specific workflow on time lines that are added or modified.
Context and operating method
Different call cases
This entry point is called on saving a time entry. For each modified or created time line, this entry point is called to send a workflow with signature. As standard, a single workflow containing all the line modifications is sent.
Available variables and masks
Class [M] of the time entry screen.
Use the NBWRK variable to disconnect the standard workflow if the variable is set to 0.
Use the GWRK variables to store the workflow text lines.
Open tables
Table |
Significant |
Table title |
PERIOD [PEO] |
Yes |
Contains the extraction period of the pay date. |
EMPLOID [ID] |
Yes |
Employee's civil status |
EMPLOENT [ENT] |
Yes |
Employee arrivals/departures |
TIMEMP [TIP] |
Yes |
Employee working times |
TIMANA [TIA] |
Yes |
Analytical time distribution |
AM_PYRDAT: After pay date modification
This entry point is called each time the pay date is modified. Use this entry point to initialize fields that are dependent on the pay date.
Context and operating method
Different call cases
This entry point is called:
- when scrolling using the radio buttons,
- after modifying the Pay date field,
- when opening the function if the pay date is initialized.
Available variables and masks
Class [M] of the time entry screen.
Open tables
Table |
Significant |
Table title |
PERIOD [PEO] |
Yes |
Contains the extraction period of the pay date. |
EMPLOID [ID] |
Yes |
Employee's civil status |
EMPLOENT [ENT] |
Yes |
Employee arrivals/departures |
TIMEMP [TIP] |
Yes |
Employee working times |
TIMANA [TIA] |
Yes |
Analytical time distribution |
CTRDATREF: Modification of the activity period
Search for the default period of activity relating to the event end date.
Context and operating method
Different call cases
This entry point is called during the various time entry operations, after the event end date has been entered. The CTRDATREF variable already contains a value calculated by default when the entry point is called. This variable can be modified in the entry point.
Available variables and masks
Class [M] of the time entry screen.
Variable |
Comment |
[L] REFNUM |
Employee ID |
[L] CTRNUM |
Contract |
[L] DATFIN |
Period end date |
[L] PYRDAT |
Pay date |
[L] ENDDATTPS |
Event end date |
Open tables
Table |
Significant |
Table title |
PERIOD [PEO] |
Yes |
Contains the extraction period of the pay date. |
EMPLOID [ID] |
Yes |
Employee's civil status |
EMPLOENT [ENT] |
Yes |
Employee arrivals/departures |
TIMEMP [TIP] |
Yes |
Employee working times |
TIMANA [TIA] |
Yes |
Analytical time distribution |
CTRENDDAT: End date control
This entry point is called on controlling the nature of the event. Use this entry point to enter a nature of event associated with an end date later than the entry end date, without using the calendar entry mode.
Context and operating method
Different call cases
This entry point is called:
- on controlling the nature of event.
Available variables and masks
Class [M] of the time entry screen.
The GPE variable is initialized to 0 before calling the entry point and it is tested when resuming the processing. If the GPE variable is <>0, the event end date control based on the entry end date for a time extraction entry mode is not performed.
Open tables
Table |
Significant |
Table title |
PERIOD [PEO] |
Yes |
Contains the extraction period of the pay date. |
EMPLOID [ID] |
Yes |
Employee's civil status |
EMPLOCTR [CTR] |
Yes |
Contract |
TIMEMP [TIP] |
Yes |
Employee working times |
WRKUNIQID: Numbering of the TIMEMP time lines
Use this entry point to manage a specific numbering on creating time lines.
Context and operating method
Different call cases
This entry point is called on saving a time entry. This entry point is called upon each time line creation to manage the line number ([F:TIP]LIG field). As standard, a single identifier linked to the TIMEMP table is assigned to the line number.
Available variables and masks
Class [M] of the time entry screen.
Open tables
Table |
Significant |
Table title |
PERIOD [PEO] |
Yes |
Contains the extraction period of the pay date. |
EMPLOID [ID] |
Yes |
Employee's civil status |
EMPLOCTR [CTR] |
Yes |
Employee employment contract |
TIMEMP [TIP] |
Yes |
Employee working times |
TIMANA [TIA] |
Yes |
Analytical time distribution |