but it failed,it was said that it couldn’t divide by zero
and after I use debugger I found an error as i bold this one
codeunit 5895 - Inventory Adjustment
CalcCostPerUnit(VAR OutbndValueEntry : Record “Value Entry”;OutbndCostElementBuf : Record “Cost Element Buffer”;ItemLedgEntryQty : Deci
WITH OutbndCostElementBuf DO BEGIN
IF (OutbndValueEntry.“Cost per Unit” = 0) AND (“Remaining Quantity” <> 0) THEN OutbndValueEntry.“Cost per Unit” := “Actual Cost” / (ItemLedgEntryQty - “Remaining Quantity”);
IF (OutbndValueEntry.“Cost per Unit (ACY)” = 0) AND (“Remaining Quantity” <> 0) THEN
OutbndValueEntry.“Cost per Unit (ACY)” := “Actual Cost (ACY)” / (ItemLedgEntryQty - “Remaining Quantity”);
END;
It’s an error in adjust cost object and not in client version, so you can even make a technical upgrade to 5.0 you will still get the same error. You must make a object correction.
Are you saying that you only run adjust cost once every several months? Why would you not run it daily? I would think you need to run it at least at the end of each accouunting period to have accurate numbers.
I recommend to run that report most often you can to keep precise financial information. Customers prefer to run that report before closing fiscal month.