InventCostTrans.setInventoryRevaluation Method
Sets the fields that are required for a revaluation of the inventory.
Syntax
public void setInventoryRevaluation(
InventCostTransType _costTransType,
Qty _onHandQty,
Qty _defferedCOGSQty)
Run On
Called
Parameters
- _costTransType
Type: InventCostTransType Enumeration
The costTransType value.
- _onHandQty
Type: Qty Extended Data Type
The on-hand quantity that should be set.
- _defferedCOGSQty
Type: Qty Extended Data Type
The deferred cost of goods sold (COGS) quantity that should be set.
Remarks
This method is used during revaluation to set the appropriate costTransType, costTransRefType, and quantity fields by using the revaluation that is processed.
In this case these are the on-hand quantity, deferred COGS qty, and the variance quantity.
Regarding the costTransType, the sign of the quantities will be reverted, if it is an Issue type.
This method will be called two times during revaluation process. Once with the type Issue to move everything out of inventory, and then with the type Receipt to put everything back in. A variance might be recorded for the receipt so that the variance qty is set.