Entry points > Module Geode GX > Standard script EXPEVAL 

AV_EXPRPT: before launching prints

This entry point is called before launching standard shipment prints.

It enables specific prints to be launched.

Context and operating method

Position GPE to 1 to inhibit standard prints.

TRANSACTION

There is no current transaction while this entry point is being used.

Available variables

TOURNUM contains a validated route number for the [L]SITE site; it is entered for shipments by routing only

OLDEP(1..), OLNUM(1..) references the delivery orders to be shipped

NUMBT number of the carriage note generated for the [L]SITE site; it is entered for shipments by routing only.

EXPRPT : after launching prints

This entry point is called after launching standard shipment prints.

It enables specific prints to be launched.

Context and operating mode

Neither GOK nor GPE are tested after this entry point.

TRANSACTION

There is no current transaction while this entry point is being used.

Available variables

TOURNUM contains a validated route number for the [L]SITE site; it is entered for shipments by routing only

OLDEP(1..), OLNUM(1..) references the delivery orders to be shipped

NUMBT number of the carriage note generated for the [L]SITE site; it is entered for shipments by routing only.

DLNBEFUPD : before creation or update of the DN

This entry point is called just before posting (or re-posting) of a final delivery note.

It is used to enter DN specific sections.

Context and operating mode

This entry point is in a loop on output movements. It is followed by a Write [DLN] or a Rewrite [DLN], after which fstat is tested.

TRANSACTION

There is a current transaction when this entry point is being used.

Available variables and tables

BLPRO equals 0 in new DN creation mode, otherwise it is the modification of an existing temporary DN.

Table DELIVERY is open and entered.

DLNCRGAMT: Calculation of the transport price for the DN

This entry point is called after the calculation of the transport price for the delivery note.

It is used to act on the result of this calculation by adding additional expenses, for example.

Context and operating method

After this entry point, GOK is tested.

TRANSACTION

There is a current transaction when this entry point is being used. If a problem occurs, GOK needs to be set to the value O.

Available variables

The [F:DLN]CRGAMT field containing the result of the standard calculation is loaded.

NTRCRGAMT: Calculation of the transport price for the carriage receipt

This entry point is called after the calculation of the transport price for the carriage receipt.

It is used to act on the result of this calculation by adding additional expenses, for example.

Context and operating method

After this entry point, GOK is tested.

TRANSACTION

There is a current transaction when this entry point is being used. If a problem occurs, GOK needs to be set to the value O.

Available variables

The [F:NTR]CRGAMT field containing the result of the standard calculation is loaded.

CANCRGAMT: Calculation of the transport price for the carriage note

This entry point is called after the calculation of the transport price for the carriage note.

It is used to act on the result of this calculation by adding additional expenses, for example.

Context and operating method

After this entry point, GOK is tested.

TRANSACTION

There is a current transaction when this entry point is being used. If a problem occurs, GOK needs to be set to the value O.

Available variables

The [F:DLN]CRGAMT field containing the result of the standard calculation is loaded.