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

FILTRE: Filter on the customer invoices

This entry point is used to set a filter on the read loop for invoice headers and their open items to calculate payment delay.

This entry point is used only when launching the function to control payment delay.

Context and operating mode

The call to the entry point is performed before the loop on invoice headers and open items starts. The CRITERE variable is empty and can be initialized with a selection criterion on the SINVOICE [SIH] table or on the GACCDUDATE [DUD] table.

Transaction

There is no transaction in progress.

Log file

There is an open log file.

Available variables and masks

Only the BPCREDIT [DIA] screen is on-line.

The BPCUSTOMER [BPC] table is on line with the customer being controlled.

AFTACCBAL: After the payment delay calculation

This entry point is used to recalculate the payment delay amount carried out by the standard program.

This entry point is used only when launching the function to control payment delay.

Context and operating mode

The call to the entry point is performed after the payment delay standard calculation. The RETARD variable contains the amount of open items in payment delay.

Transaction

There is no transaction in progress.

Log file

There is an open log file.

Available variables and masks

The BPCUSTOMER [BPC] table is on line with the customer being controlled.

The RETARD variable contains the amount of open items calculated by the standard program.

The MNT variable contains the maximum amount entered by the user.

The JRS variable contains the number of additional days entered by the user.

MAJ: Before customer update transaction

This entry point is used to modify for each customer the choice (hold/release) carried out by the standard program.

Context and operating mode

The call to the entry point is performed before the update transaction for each customer. The GPE variable, if set to a value different from zero, is used to prevent the transaction. Otherwise, the VALEUR variable can be initialized to the value to be assigned to the hold/release field (local menu 234), since it is initialized to the value calculated by the standard program.

Transaction

There is no transaction in progress.

Log file

There is an open log file.

Available variables and masks

The CLICUR variable contains the customer to control.

- For the payment delay control, CLICUR is the Pay-by BP.

The BPCUSTOMER table is updated for the customer code (BPCNUM) = CLICUR.

- For the credit control, CLICUR is the Risk BP.

 The BPCUSTOMER table is updated for the Risk BP (BPCRSK) = CLICUR.