Entry points >  Module Common Data >  Standard script RTZCALCOM  

Display all Hide all

MAJRTZ: after the entry of a retention transaction

This entry point is called after the write of a retention movement record.

Context and operating mode

Transaction

There is one transaction in progress.

Log file

There is no open log file.

Different call cases

This entry point is called right after the entry of a record into the RITMVT [RTM] table.

Available variables and masks

The [RTM] table is loaded with the record that has just been written.

Variables

Definition

Value Char NUMPIECE

 Paid BP

Value Integer SIGNE

 Beneficiary BP

SIRET

 BP site registration

DEVREG

 Payment currency

MOYPAI

 Formula result

Open tables

Tables

Significant content

Table Title

 PINVOICE [PIH]

OUI

Purchase invoice

 RITMVT [RTM]

OUI

Retention movements

DELRTZ: after the deletion of a retention movement

Use this entry point to intervene after the deletion of a retention movement recording.

Context and operating mode

Transaction

There is one transaction in progress.

Log file

There is no open log file.

Different call cases

This entry point is called right after the deletion of a recording from the RITMVT [RTM] table.


Open tables

Tables

Significant content

Table Title

PINVOICE [PIH]

OUI

Purchase invoice

RITMVT [RTM]

OUI

Retention movements

STRCALRTZ: retention amount calculation start

Use this entry point to intervene at the beginning of the retention amount calculation program.

Context and operating mode

Transaction

There is one transaction in progress.

Log file

There is no open log file.

Different call cases

This entry point is called at the beginning of the retention amount calculation program and just after the declaration of the RITENZIONE [RTZ] table.

If the GPE global variable is set to 1 when resuming the processing, the standard calculation for the retention amount is not performed.

Open tables

Tables

Significant content

Table Title

RITENZIONE [RTZ]

NON

Retention codes

ENDCALRTZ: retention amount calculation end

Use this entry point to intervene at the end of the retention amount calculation program.

Context and operating mode

Transaction

There is one transaction in progress.

Log file

There is no open log file.

Different call cases

This entry point is called at the end of the retention amount calculation program, just before the End instruction.


Available variables

Variables

Definition

Value Char CODRET

Retention code

Value Char CODBPR

BP code

RITAMTRTZ

RITBASRTZ

Retention amount in currency

Base in retention currency




Open tables

Tables

Significant content

Table Title

RITENZIONE [RTZ]

OUI

Retention codes