This entry point can be used when entering working times and/or updating payroll variables to value the number of days and/or hours between two dates, for an employee. This entry point is called before the standard valuation of the employee's planning.
If the value of the OK variable is 0 on leaving this entry point, the standard valuation will be performed.
This entry point can be used when entering working times and/or updating payroll variables to revalue the number of days and/or hours between two dates, for an employee. This entry point is called after the standard valuation of the employee's planning.
The GTRACE variable must be tested. If GTRACE<> » » a log file is opened, otherwise GTRACE= » ».
The SUBPLN script is called from the following functions:
The SUBPLN processing calls the AV_VALOR & AP_VALOR entry points once during the valuation of the number of hours and days between two dates.
The AV_VALOR entry point is called before the standard valuation of the days and hours included within a period. This standard valuation is performed based on the planning and updates the variables HEURE (number of hours) and JOUR (number of days). The entry point is used to initialize these values. If you want to prevent the standard valuation performed on leaving this entry point, position the OK variable to 1.
The AP_VALOR entry point is called after the standard valuation of the days and hours included within a period. This standard valuation is performed based on the planning and updates the variables HEURE (number of hours) and JOUR (number of days). The entry point is used to modify these values.
|
Variable or mask |
Definition |
|
Char() MATRI |
Employee's ID number |
|
Date DATDEB, DATFIN |
Contains the period to be valued |
|
Decimal HEURE |
Valuation of the period in number of hours |
|
Decimal JOUR |
Valuation of the period in number of days |
|
Char() CODE |
Code of the time event entered for the period |
|
Char() SITE |
Employee's site |
|
Char() CTR |
Employee's contract |
|
Table |
Significant |
Table title |
|
TIMCOD [TIM] |
Yes |
Time events |
|
EMPLOAD [AD] |
Yes |
Employee's administrative information |
|
EMPLOCTR [CTR] |
Yes |
Employee's employment contract |
|
PLANEMP [PLE] |
Yes |
Employee planning |
|
PLANTYP [PLN] |
Yes |
Reference planning |
|
TYPWEEK [WTY] |
Yes |
Standard week |
|
HLYDAY [HLY] |
Yes |
Public holidays |
|
FACILITY [FCY] |
Yes |
Site |