Entry points > Module Purchasing > Standard script SUBPIHD 

PIHOVEINV: Allocation with over-invoicing on receipt

This entry point located in the SUBPIHD processing (saving of a purchase invoice), generates a "PIHOVEINV" action.

The purpose of this action is to give the possibility to allocate or not the over-invoiced quantity for existing receipts.

Context and operating mode

Transaction

There is one transaction in progress.

Log file

There is no open log file.

Different call cases

The call is made when saving a purchase invoice line.

Available variables and masks

The following variables are loaded when calling the "PIHOVEINV" action.

SIGN

Equals 1 in creation and -1 in deletion.

WQTE

Invoicing excess quantity.

The following screen masks can be used: [M:PIH0], [M:PIH1], [M:PIH2], [M:PIH3], [M:PIH4]

The following file classes are loaded: [F:PIH], [F:PIV], [F:PID] and [F:PTD]

The variables and the classes given above must not be modified.

The following variables can be modified.

WPIHOVEINV

Allocation flag on other receipts (0=No, 1=Yes).

Open tables

In the table below, the significant content flag indicates that the content is in phase with the context.

Table

Significant content

Table Title

PINVOICE

Yes

Invoice header

PINVOICEV

Yes

Additional purchase invoice header

PINVOICED

Yes

Purchase invoice lines

PRECEIPT

Yes

Receipt header

PRECEIPTD

Yes

Receipt line

Miscellaneous remarks

This entry point is only called in case of over-invoicing