Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Answered

production order Statistics Page calculation FIFO

Posted on by 2,195

Hi All

I'm trying understand how the statistics page calculates variance as it looks like variance is based on the standard cost vs actual but we don't use standard cost so should it be expected cost vs actual cost?

variance.png

Thanks

Categories:
  • Verified answer
    Marco Mels Profile Picture
    Marco Mels on at
    RE: production order Statistics Page calculation FIFO

    Hello,

    The code behind this shows the following:

      local procedure CalcVariance()

       var

           i: Integer;

           IsHandled: Boolean;

       begin

           for i := 1 to ArrayLen(VarAmt) do begin

               IsHandled := false;

               OnBeforeCalcVariance(VarAmt, VarPct, StdCost, ActCost, i, IsHandled);

               if not IsHandled then begin

                   VarAmt[i] := ActCost[i] - StdCost[i];

                   VarPct[i] := CalcIndicatorPct(StdCost[i], ActCost[i]);

               end;

           end;

       end;

    Hope it helps.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,768 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,985 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans