To implement this hotfix, you must have a developer license.
You do not have to have rights to the data stores unless you have to perform data repair.
...
VAR
SKU@1008 : Record 5700;
AverageCost@1011 : Decimal;
AverageCostACY@1010 : Decimal;
BEGIN
WITH Item DO BEGIN
IF NewStdCost <> 0 THEN
"Standard Cost" := NewStdCost;
IF "Costing Method" = "Costing Method"::Standard THEN
...
...
VAR
SKU@1008 : Record 5700;
AverageCost@1011 : Decimal;
AverageCostACY@1010 : Decimal;
BEGIN
+ GetInvtSetup;
WITH Item DO BEGIN
IF NewStdCost <>0 THEN
"Standard Cost" := NewStdCost;
IF "Costing Method" = "Costing Method"::Standard THEN
...
...
MODIFY;
IF UpdateSKU THEN BEGIN
SKU.SETCURRENTKEY("Item No.");
SKU.SETRANGE("Item No.","No.");
- ItemCostMgt.GetInvtSetup;
IF InvtSetup."Average Cost Calc. Type" <> InvtSetup."Average Cost Calc. Type"::Item THEN
IF FilterSKU THEN BEGIN
SKU.SETFILTER("Location Code",'%1|%2','',LocationCode);
SKU.SETFILTER("Variant Code",'%1|%2','',VariantCode);
END ELSE BEGIN
...
...
MODIFY;
IF UpdateSKU THEN BEGIN
SKU.SETCURRENTKEY("Item No.");
SKU.SETRANGE("Item No.","No.");
IF InvtSetup."Average Cost Calc. Type" <> InvtSetup."Average Cost Calc. Type"::Item THEN
IF FilterSKU THEN BEGIN
SKU.SETFILTER("Location Code",'%1|%2','',LocationCode);
SKU.SETFILTER("Variant Code",'%1|%2','',VariantCode);
END ELSE BEGIN
...