CHARGE_LIG: Access to the payment lines

Use the CHARGE_LIG entry point to take over upon loading of open items in the payment lines when open items are selected via picking.

Context and operating mode

Transaction

There is no transaction in progress.

Log file

There is no open log file.

Call context

The entry point is called just before the transfer of the open items in the WMPY1XXX [PAY1] payment line mask.

Available variables and masks

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

Open tables

Table

Significant content

Table Title

GACCDUDATE [DUD]

Yes

Open items

GACCDENCOD

Yes

Accounting destinations

CRITERE: Filter on open items for the picking

Use the CRITERE entry point to take over in order to modify the filter applied to open items in the picking of open items in payment entry.

Context and operating mode

Transaction

There is no transaction in progress.

Log file

There is no open log file.

Call context

The entry point is called at the end of the FILGAUCHE action. 

Available variables and masks

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

The FILGAUSUP variable contains the different criteria in standard.

The ILIS variable corresponds to ILISDU5 (Open item selection panel) and ILISDU6 (Grouped open item selection panel)

Open tables

Table

Significant content

Table Title

GACCENTRY

No

Accounting documents

GTYPACCENT

No

Entry types

ESCAGIO: Discount/charge calculation

Use the ESCAGIO entry point to take over just before the discount/charge calculation in order to trigger the discount/charge calculation in open item picking for credit memos.

Context and operating mode

Transaction

There is no transaction in progress.

Log file

There is no open log file.

Call context

The entry point is called just before the discount/charge calculation. 

Available variables and masks

In standard mode, the discount/charge calculation is not launched in open item picking for credit memos. If the CAL_ESCAGIO variable is initialized to 2 in specific, the discount/charge calculation will also be triggered for credit memos.

Open tables

Table

Significant content

Table Title

GACCDUDATE

Yes 

Open items

GACCDENCOD

Yes

Accounting destinations 

DEPVATSLT: VAT split on the discount line

Use this entry point to take over at the end of the calculation for the VAT split on discount lines.

The ECLVAT variable set to 0 is used to stop the VAT split.

Context and operating mode

Transaction

There is no transaction in progress.

Log file

There is no open log file.

Call context

The entry point is called at the end of the VAT split calculation - ECLAT_TVA sub-program.

Sub-program variables

Variables

Definition

Value SOCIETE

Payment company

Value SENS

Payment sign

Value NUMERO

Number of the open item to pay

Value ACC_NUM

Internal number of the open item to pay

TTC variable

Open item amount

NBTAX variable

Tax number of the invoice

TCODTAX() variable

Tax code list of the invoice

TBASTAX() variable

Tax basis list by tax code

TAMTTAX() variable

Tax amount list by tax code

ECLVAT variable

Value 0: there will be no split

Value 1: there will be a VAT split according to NBTAX

Open tables

Table

Significant content

Table Title

GACCOUNT

No

Accounts

PINVOICE

No

Purchase invoices

SINVOICE

 No

Sales invoices

GACCENTRYD

No

Accounting entry lines

GACCDUDATE

No

Open items