Skip to main content

Notifications

Small and medium business | Business Central, N...
Unanswered

Inventory Adjustment

Posted on by 190

Hello,

We have the following problem in NAV 2018:

After Inventory Adjustment, the actual cost of the output of a finished production order does not correspond to the direct cost of materials and capacity consumed.

Any suggestion would be of great help.

Thank you.

  • Galina Georgieva Profile Picture
    Galina Georgieva 190 on at
    RE: Inventory Adjustment

    Hi,

    We solved the problem by modifying Codeunit 5896:

    LOCAL CalcShareOfCapCost(InvtAdjmtEntryOrder : Record "Inventory Adjmt. Entry (Order)") ShareOfCapCost : Decimal

    IF InvtAdjmtEntryOrder."Order Type" = InvtAdjmtEntryOrder."Order Type"::Assembly THEN

     EXIT(1);

    WITH CapLedgEntry DO BEGIN

     SETCURRENTKEY("Order Type","Order No.");

     SETRANGE("Order Type",InvtAdjmtEntryOrder."Order Type");

     SETRANGE("Order No.",InvtAdjmtEntryOrder."Order No.");

     SETRANGE("Order Line No.",InvtAdjmtEntryOrder."Order Line No.");

     SETRANGE("Routing No.",InvtAdjmtEntryOrder."Routing No.");

     SETRANGE("Routing Reference No.",InvtAdjmtEntryOrder."Routing Reference No.");

     SETRANGE("Item No.",InvtAdjmtEntryOrder."Item No.");

     CALCSUMS("Output Quantity");

     ShareOfCapCost := "Output Quantity";

     IF InvtAdjmtEntryOrder."Order Type" = InvtAdjmtEntryOrder."Order Type"::Production THEN

    -------->OLD: SETRANGE("Order Line No);

    -------> NEW: SETRANGE("Order Line No.",InvtAdjmtEntryOrder."Order Line No.");

     CALCSUMS("Output Quantity");

     IF "Output Quantity" <> 0 THEN

       ShareOfCapCost := ShareOfCapCost / "Output Quantity"

     ELSE

       ShareOfCapCost := 1;

  • cetas Profile Picture
    cetas 230 on at
    RE: Inventory Adjustment

    Hi,

    i hope that you must have run the "Adjust cost batch job" and after finishing the production order did you check the "update unit cost" boolean.

  • Galina Georgieva Profile Picture
    Galina Georgieva 190 on at
    RE: Inventory Adjustment

    Hi,

    The costing method is "Average" for all the items.

  • cetas Profile Picture
    cetas 230 on at
    RE: Inventory Adjustment

    Hi,

    Is the "costing method" for the items in the production order  set as "STANDARD", if not these type of issues may occur.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans