1
In \Classes\InventCostItemDim\updateModelAverage(), there is a line code where it's set, line 195:
pdsCWReceiptScanQty = this.financialOpenQty(transferReceipt);

This is wrong as it's refering to the Primary item unit and not of the secondary (CW) item unit.

It should be: pdsCWReceiptScanQty = this.pdsCWFinancialOpenQty(transferReceipt);

This caused an inventory closing error saying:
‘Product A100800.
Available physical Site PWA
Impossible to take the PV of 378,535.00 as only 63,539.00 are available in the stock of the variable weight.
The update has been cancelled.
Closing is suspended because an error occurred. Please fix the problem and resume the close’

Problem was fixed in Customer environment and Partner reported this problem as code defect, but cannot provide repro steps nor a copy of the environment where it happened.

Below the If statement where this problem is:

// If we are recovering from a hard shutdown, but have no receipts other than the transfer receipt,
// then all original receipts must have been settled against the transfer already, and we can just
// use the transfer receipt as a single ordinary receipt and settle all (remaining) issues against it.

if (transferAlreadyExists && receiptScanCount == 0)
{
receiptScanQty = this.financialOpenQty (transferReceipt);
receiptScanValue = this.financialOpenValue(transferReceipt);
if (isCatchWeightItem)
{
pdsCWReceiptScanQty = this.financialOpenQty(transferReceipt);
}
receiptScanCount = 1;

transferAlreadyExists = false;
}
Category: Inventory
STATUS DETAILS
Declined
Ideas Administrator

Thank you for reaching out. Your suggestion seems to be a product bug. Please reach out to the relevant support channels as specified in Product support (http://go.microsoft.com/fwlink/?LinkID=616937).

 

 

Sincerely,

Per Lykke Lynnerup

PM, Microsoft