CPTINIVAR processing: CPTINIVAR
CALAMTRTZ: Retention amount calculation
Use this entry point to take over and reroute the standard retention amount calculation performed at the level of the payment automatic journal for the generation of retention lines.
Context and operating mode
Transaction
There is one transaction in progress.
Call context
This entry point is called at the beginning of the sub-program linked to the AMTRITEN automatic journal variable used to evaluate the retention amount to record on the cash account or on the charge amount.
When resuming the execution of the processing, the GPE global variable is tested. If it is equal to 1, the retention amount standard calculation will not be executed.
Available variables and masks
The TYPCPT local variable contains the account type for which the retention amount is calculated (1:Cash account; 2:Charge account).
The TYP local variable contains the amount type to calculate (1:Amount in transaction currency; 2:Amount in ledger currency).