TRTCAL script: TRTCAL
CRIVEPSPE entry point
This entry point is used to add selection criteria to the payroll calculation process in order to filter the search of the payrolls to calculate.
Context and operating method:
Different call cases
The entry point is called before searching the payrolls to be calculated.
The content of the CRIVEPSPE variable is analyzed upon return from the call to the entry point. The analysis of the variable is used to filter the payslips to be processed.
The CRIVEPSPE variable is set to '1=1" by default. To add a search filter to the payslips to calculate, the CRITVEPSPE variable only needs to be populated with a criterion to assess.
For example: CRITVEPSPE -= '& [F:VEP]FLGGEN=2' to only process the payslips with the 'Generation' flag selected in the time closing tracking.
Open tables
Table |
Significant content |
Table title |
EMPLOID [ID] |
Yes |
Employee's civil status |
EMPCTR [ECT] |
Yes |
Employee's last contract |
COMPANY [CPY] |
No |
Company |
FACILITY [FCY] |
No |
Employee's site |
VALEMP [VEP] |
No |
Payroll header |
ACCESS [ACC] |
No |
Access by user |
UPD_AFTER entry point
This entry point is used to intervene in the slip calculation.
Context and operating method
Different call cases
This entry point is called after the calculation of each payslip.
Open tables
Table |
Significant content |
Table title |
EMPLOID [ID] |
Yes |
Employee's civil status |
EMPCTR [ECT] |
Yes |
Employee's last contract |
COMPANY [CPY] |
No |
Company |
FACILITY [FCY] |
No |
Employee's site |
VALEMP [VEP] |
Yes |
Payroll header |
ACCESS [ACC] |
No |
Access by user |