MAJRTZ: after the entry of a withholding transaction

This entry point is called after the write of a withholding 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

Withholding movements

DELRTZ: after the deletion of a withholding movement

Use this entry point to take control after the deletion of a withholding 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

Withholding movements

STRCALRTZ: withholding amount calculation start

Use this entry point to take control at the beginning of the withholding 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 withholding 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 withholding amount is not performed.

Open tables

Tables

Significant content

Table Title

RITENZIONE [RTZ]

NON

Withholding codes

ENDCALRTZ: withholding amount calculation end

Use this entry point to take control at the end of the withholding 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 withholding amount calculation program, just before the End instruction.


Available variables

Variables

Definition

Value Char CODRET

Withholding code

Value Char CODBPR

BP code

RITAMTRTZ

RITBASRTZ

Withholding amount in currency

Base in withholding currency




Open tables

Tables

Significant content

Table Title

RITENZIONE [RTZ]

OUI

Withholding codes