Skip to main content
Business Central forum
Answered

production order Statistics Page calculation FIFO

editSubscribe (0) ShareShare
ReportReport
Posted on by 2,166

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

What Motivates a Super User?

We know many of you visit the Dynamics 365 Community and Power Platform…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,068 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,591 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Product updates

Dynamics 365 release plans