Codeunit 18123475 EOS Standard Cost Calculation

Codeunit 18123475 EOS Standard Cost Calculation

Codeunit EOS Standard Cost Calculation (ID 18123475).

Methods

CalculateStandardCost

procedure CalculateStandardCost(StartDate: Date; EndDate: Date; NewUseLastCost: Boolean; var ItemCostHistory: Record "EOS Item Cost History")

CalculateStandardCost.

Parameters / Return Value

  • StartDate Date

    Date.

  • EndDate Date

    Date.

  • NewUseLastCost Boolean

    Boolean.

  • ItemCostHistory Record "EOS Item Cost History"

    VAR Record “EOS Item Cost History”.


SetProperties

procedure SetProperties(NewCalculationDate: Date; NewCompetenceYear: Date; NewCalcMultiLevel: Boolean; NewLogErrors: Boolean; NewShowDialog: Boolean; NewUseLastCost: Boolean)

SetProperties.

Parameters / Return Value

  • NewCalculationDate Date

    Date.

  • NewCompetenceYear Date

    Date.

  • NewCalcMultiLevel Boolean

    Boolean.

  • NewLogErrors Boolean

    Boolean.

  • NewShowDialog Boolean

    Boolean.

  • NewUseLastCost Boolean

    Boolean.


CalcRtngCostPerUnit

procedure CalcRtngCostPerUnit(RoutingHistory: Record "EOS Routing History"; var DirUnitCost: Decimal; var IndirCostPct: Decimal; var OvhdRate: Decimal; var UnitCost: Decimal; var UnitCostCalculation: Enum "Unit Cost Calculation Type")

CalcRtngCostPerUnit.

Parameters / Return Value

  • RoutingHistory Record "EOS Routing History"

    Record “EOS Routing History”.

  • DirUnitCost Decimal

    VAR Decimal.

  • IndirCostPct Decimal

    VAR Decimal.

  • OvhdRate Decimal

    VAR Decimal.

  • UnitCost Decimal

    VAR Decimal.

  • UnitCostCalculation Enum "Unit Cost Calculation Type"

    VAR Option Time,Unit.


CalcCompItemQtyBase

procedure CalcCompItemQtyBase(ProdBOMComponent: Record "EOS Production BOM History"; CalculationDate: Date; MfgItemQtyBase: Decimal; RtngNo: Code[20]; AdjdForRtngScrap: Boolean): Decimal

CalcCompItemQtyBase.

Parameters / Return Value

  • ProdBOMComponent Record "EOS Production BOM History"

    Record “EOS Production BOM History”.

  • CalculationDate Date

    Date.

  • MfgItemQtyBase Decimal

    Decimal.

  • RtngNo Code[20]

    Code[20].

  • AdjdForRtngScrap Boolean

    Boolean.

  • Returns Decimal

    Return value of type Decimal.


RollupAdditionalCostFromBOM

procedure RollupAdditionalCostFromBOM(var ProductionBOMHistory: Record "EOS Production BOM History"; CompItemQtyBase: Decimal; UseWACCost: Boolean; var CompRUOther: Decimal)

RollupAdditionalCostFromBOM.

Parameters / Return Value

  • ProductionBOMHistory Record "EOS Production BOM History"

    VAR Record “EOS Production BOM History”.

  • CompItemQtyBase Decimal

    Decimal.

  • UseWACCost Boolean

    Boolean.

  • CompRUOther Decimal

    VAR Decimal.


SumUpAdditionalCost

procedure SumUpAdditionalCost(var ItemHistory: Record "EOS Item Cost History"): Decimal

SumUpAdditionalCost.

Parameters / Return Value

  • ItemHistory Record "EOS Item Cost History"

    VAR Record “EOS Item Cost History”.

  • Returns Decimal

    Return value of type Decimal.


InitAdditionalCost

procedure InitAdditionalCost(var ItemHistory: Record "EOS Item Cost History")

InitAdditionalCost.

Parameters / Return Value

  • ItemHistory Record "EOS Item Cost History"

    VAR Record “EOS Item Cost History”.


SetStandardCostMode

procedure SetStandardCostMode(StdMode: Boolean)

Parameters / Return Value

  • StdMode Boolean

Events

OnBeforeCalcCostTimeOnCalcRtngCost

local procedure OnBeforeCalcCostTimeOnCalcRtngCost(RoutingHistory: Record "EOS Routing History"; MfgItemQtyBase: Decimal; UnitCostCalculation: Enum Microsoft.Foundation.Enums."Unit Cost Calculation Type"; CostIncludeSetup: Boolean; var CostTime: Decimal; var IsHandled: Boolean)

Parameters / Return Value

  • RoutingHistory Record "EOS Routing History"

  • MfgItemQtyBase Decimal

  • UnitCostCalculation Enum "Microsoft.Foundation.Enums."Unit Cost Calculation Type""

  • CostIncludeSetup Boolean

  • CostTime Decimal

  • IsHandled Boolean


OnAfterCalcCostTimeOnCalcRtngCost

local procedure OnAfterCalcCostTimeOnCalcRtngCost(RoutingHistory: Record "EOS Routing History"; MfgItemQtyBase: Decimal; UnitCostCalculation: Enum Microsoft.Foundation.Enums."Unit Cost Calculation Type"; CostIncludeSetup: Boolean; var CostTime: Decimal)

Parameters / Return Value

  • RoutingHistory Record "EOS Routing History"

  • MfgItemQtyBase Decimal

  • UnitCostCalculation Enum "Microsoft.Foundation.Enums."Unit Cost Calculation Type""

  • CostIncludeSetup Boolean

  • CostTime Decimal


OnAfterSetLoadFieldsOnCalcRtngCost

local procedure OnAfterSetLoadFieldsOnCalcRtngCost(PeriodCode: Code[20]; var RoutingHistory: Record "EOS Routing History")

Parameters / Return Value

  • PeriodCode Code[20]

  • RoutingHistory Record "EOS Routing History"



EOS Labs -