CALBAS script: Base calculation
CREBAI: Modifying the calculated individual bases
Use the CREBAI entry point to modify the employees' individual bases calculated according to predefined formulas.
Context and operating method
Call context
The entry point is called when reading the individual bases which need to be generated. It is called before performing any entry on the BASIND folder.
Variable GOK is tested on return from the entry point. If GOK<1, the transaction stops.
Available variables and masks
Classes [M] on line:
- CRITBAI [M:DIA]
Classes [F] on line:
- COMPANY [F:CPY]
- FACILITY [F:FCY]
- EMPLOID [F:ID]
- EMPLOCTR [F:CTR]
- EMPLOPAR [F:PAR]
- BASGEN [F:BAS]
CALPRES: Modifying the calculated presence prorata
Use the CALPRES entry point to modify the calculated presence prorata used to calculate individual bases.
Context and operating method
Call context
The entry point is called when reading the individual bases which need to be generated. It is called before performing any calculation & entry on the BASIND folder.
The PRESTOT variable contains the total number of days over the period.
The PRES variable contains the current employee's number of presence days, calculated by the standard. This variable can be modified in this entry point to modify the presence prorata result: [F:BAI]PPN = min(arr(PRES/PRESTOT,0.000001),1.000000)
Available variables and masks
Classes [M] on line:
- CRITBAI [M:DIA]
Classes [F] on line:
- COMPANY [F:CPY]
- FACILITY [F:FCY]
- EMPLOID [F:ID]
- EMPLOCTR [F:CTR]
- EMPLOPAR [F:PAR]