Entry points > Module A/P-A/R accounting > Standard script SUBPAY2 

CALAMTRTZ: Retained amount calculation in payment entry

Use this entry point to short-circuit the standard retained amount calculation performed when selecting an open item in payment entry.

Context and operating mode

Transaction

There is no transaction in progress.

Log file 

There is no log file.

Call context

This entry point is called in the part of the program where an open item can be selected on the payment lines, just after the selected open item is transferred to the WMP1XXX [PAY1] payment line mask and once the standard controls on this open item have been carried out. 

When resuming the execution of the processing, the GPE global variable is tested. If it is equal to 1, the retained amount standard calculation will not be executed. 

Available variables and masks

The WMPY1XXX [PAY1] mask (XXX corresponding to the current payment transaction, possibly followed by the legislation) is open. This is the default mask.

CALAMTRTZP: Retained amount calculation in payment entry

Use this entry point to short-circuit the standard retained amount calculation performed when selecting an open item for the partial payment of this open item in payment entry.

Context and operating mode

Transaction

There is no transaction in progress.

Log file 

There is no log file.

Call context

This entry point is called in the part of the program allowing an open item to be loaded on the payment line, just after the invoice linked to the open item to pay is read and in the read loop of the retention codes linked to the invoice. 

Available variables and masks

The WMPY1XXX [PAY1] mask (XXX corresponding to the current payment transaction, possibly followed by the legislation) is open. This is the default mask.

The [F:PIH] class is on line and contains the information about the invoice of the open item.

The [F:RTZ] class is on line and contains the information about the retention code being processed.