Full stock valuation

This parameter is used within the context of the management of purchase documents, and namely the stock valuation calculation.

Yes
One or several recordings are created for each document line in a dedicated table (PTDSTKVAL), when the following elements are validated:
These records track the history of the links between this invoice or credit memo and the other purchase documents (orders, shipments and receipts). In addition it saves all the valuation data, such as the quantity and the stock cost per unit calculated using the document values.
These data are used in the receipt valuation calculation.

In this table, the TIAFLG flag is set to 1 when the invoice valuation elements have not been considered yet in the stock valuation calculation, and therefore matched with a receipt. Whenever a record is posted to a receipt, the related valuation elements are taken into account and this flag is automatically set to 2.
This new link table is used to consider all the invoices, credit memos and additional invoices associated with the receipts, irrespective of which documents arrived first. The stock value and the stock movement amount associated with the receipt is subsequently adjusted via the stock adjustments.

NoteThe shipment and shipment line are entered in this table only for additional invoices on shipment and for the credit memos on these additional invoices. These data are not entered when an invoice, an additional invoice, or a credit memo on order or on receipt is validated, even when a shipment is linked to these documents.

No
The PTDSTKVAL table is not populated.

In the event of a partial invoicing, there can be a difference when determining the stock cost per unit, depending on whether the receipt has been created before or after invoice validation.
In effect, when the receipt is created before invoice validation, the stock cost per unit is recalculated when each invoice is validated. On the other hand, when the invoice occurs before receipt (invoice on order), the stock cost per unit is determined solely from the stock cost per unit of the first invoice and the related additional invoices. It does not take the order price into account although the latter can be different on the next invoices.

Note on credit memos

The process is applied until the quantity on the credit memo has been fully assigned.

Note on additional invoices/credit memos on additional invoices

Only the additional invoices (or credit memos on additional invoices) meeting the following conditions are stored and saved in the PTDSTKVAL table:

For additional invoices on invoices:
For additional invoices on receipts:

For additional invoices on orders:

Notes:

For additional invoices on invoices linked to orders:

Note:

For additional invoices on shipments

Notes:

Example of the impact of this parameter in the event of an invoice on order

If the parameter is set to No:
The stock cost per unit is €110, solely calculated on the basis of the stock cost per unit of €110 from the first invoice.

If the parameter is set to Yes:
The stock cost per unit is €146, calculated on the basis of the stock cost per unit of €110 from the first invoice and of stock cost per unit of €170 from the second invoice.

Localization level / Global variable

This parameter is defined at the level Site. It belongs to Chapter ACH (Purchase) and the Group REC (Receipt management rules), The following parameters are also associated with this chapter and group :

The global variable GPRIFLG is associated with it.

Functions concerned

The following functions are associated with this parameter :

  Purchasing > Invoices > Invoice validation

  Purchasing > Invoices > Invoices

  Stock > Receipt/issue transactions > Receipts

Notes

Choosing to set the parameter to Yescannot be undone. The parameter can no longer be set to No as soon as the table starts to be populated, in other words, from the first invoice validation.
The setup becomes effective on the date when the parameter is set to Yes: