Codeunit 18123471 EOS History Calc. Cost Mgt.
Codeunit EOS History Calc. Cost Mgt. (ID 18123471).
procedure RoutingCostPerUnit(PeriodCode: Code[20]; ItemNo: Code[20]; CapacityTypeJnl: Enum "Capacity Type Journal"; No: Code[20]; SetupUOMCode: Code[10]; RunUOMCode: Code[10]; var DirUnitCost: Decimal; var IndirCostPct: Decimal; var OvhdRate: Decimal; var UnitCost: Decimal; var UnitCostCalculation: Enum "Unit Cost Calculation Type")
RoutingCostPerUnit.
PeriodCode Code[20]
Code[20].
ItemNo Code[20]
Code[20].
CapacityTypeJnl Enum "Capacity Type Journal"
Enum “Capacity Type Journal”.
No Code[20]
Code[20].
SetupUOMCode Code[10]
Code[10].
RunUOMCode Code[10]
Code[10].
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.
procedure RoutingCostPerUnit2(PeriodCode: Code[20]; ItemNo: Code[20]; CapacityTypeJnl: Enum "Capacity Type Journal"; CapacityNo: Code[20]; SetupUOMCode: Code[10]; RunUOMCode: Code[10]; var DirUnitCost: Decimal; var IndirCostPct: Decimal; var OvhdRate: Decimal; var UnitCost: Decimal; var UnitCostCalculation: enum "Unit Cost Calculation Type"; RoutingUnitCost: Decimal)
RoutingCostPerUnit2.
PeriodCode Code[20]
Code[20].
ItemNo Code[20]
Code[20].
CapacityTypeJnl Enum "Capacity Type Journal"
Enum “Capacity Type Journal”.
CapacityNo Code[20]
Code[20].
SetupUOMCode Code[10]
Code[10].
RunUOMCode Code[10]
Code[10].
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.
RoutingUnitCost Decimal
Decimal.
procedure CalcDirUnitCost(UnitCost: Decimal; OvhdRate: Decimal; IndirCostPct: Decimal): Decimal
CalcDirUnitCost.
UnitCost Decimal
Decimal.
OvhdRate Decimal
Decimal.
IndirCostPct Decimal
Decimal.
Returns Decimal
Return value of type Decimal.
procedure CalcCompItemQtyBase(ProdBOMComponent: Record "EOS Production BOM History"; MfgItemQtyBase: Decimal; RtngNo: Code[20]; AdjdForRtngScrap: Boolean): Decimal
CalcCompItemQtyBase.
ProdBOMComponent Record "EOS Production BOM History"
Record “EOS Production BOM History”.
MfgItemQtyBase Decimal
Decimal.
RtngNo Code[20]
Code[20].
AdjdForRtngScrap Boolean
Boolean.
Returns Decimal
Return value of type Decimal.
procedure CalcQtyAdjdForBOMScrap(Qty: Decimal; ScrapPct: Decimal): Decimal
CalcQtyAdjdForBOMScrap.
Qty Decimal
Decimal.
ScrapPct Decimal
Decimal.
Returns Decimal
Return value of type Decimal.
procedure CalcQtyAdjdForRoutingScrap(Qty: Decimal; ScrapFactorPctAccum: Decimal; FixedScrapQtyAccum: Decimal): Decimal
CalcQtyAdjdForRoutingScrap.
Qty Decimal
Decimal.
ScrapFactorPctAccum Decimal
Decimal.
FixedScrapQtyAccum Decimal
Decimal.
Returns Decimal
Return value of type Decimal.
procedure CalcCostTime(ItemNo: Code[20]; MfgItemQtyBase: Decimal; SetupTime: Decimal; SetupTimeUOMCode: Code[10]; RunTime: Decimal; RunTimeUOMCode: Code[10]; RtngLotSize: Decimal; ScrapFactorPctAccum: Decimal; FixedScrapQtyAccum: Decimal; WorkCenterNo: Code[20]; UnitCostCalculation: Enum "Unit Cost Calculation Type"; CostInclSetup: Boolean; ConcurrentCapacities: Decimal) CostTime: Decimal
CalcCostTime.
ItemNo Code[20]
Code[20].
MfgItemQtyBase Decimal
Decimal.
SetupTime Decimal
Decimal.
SetupTimeUOMCode Code[10]
Code[10].
RunTime Decimal
Decimal.
RunTimeUOMCode Code[10]
Code[10].
RtngLotSize Decimal
Decimal.
ScrapFactorPctAccum Decimal
Decimal.
FixedScrapQtyAccum Decimal
Decimal.
WorkCenterNo Code[20]
Code[20].
UnitCostCalculation Enum "Unit Cost Calculation Type"
Option Time,Unit.
CostInclSetup Boolean
Boolean.
ConcurrentCapacities Decimal
Decimal.
Returns Decimal
Return variable CostTime of type Decimal.
procedure CalcOvhdCost(DirCost: Decimal; IndirCostPct: Decimal; OvhdRate: Decimal; QtyBase: Decimal): Decimal
CalcOvhdCost.
DirCost Decimal
Decimal.
IndirCostPct Decimal
Decimal.
OvhdRate Decimal
Decimal.
QtyBase Decimal
Decimal.
Returns Decimal
Return value of type Decimal.
procedure GetLastCost(var ItemHistory: Record "EOS Item Cost History"; EndDate: Date)
GetLastCost.
ItemHistory Record "EOS Item Cost History"
VAR Record “EOS Item Cost History”.
EndDate Date
Date.
procedure GetCostFromILE(PeriodCode: Code[20]; ItemNo: Code[20]; StartDate: Date; EndDate: Date; OnlyEntryWithValue: Boolean; var LastDate: Date; var UnitCost: Decimal): Decimal
GetCostFromILE.
PeriodCode Code[20]
Code[20].
ItemNo Code[20]
Code[20].
StartDate Date
Date.
EndDate Date
Date.
OnlyEntryWithValue Boolean
Boolean.
LastDate Date
VAR Date.
UnitCost Decimal
VAR Decimal.
Returns Decimal
Return value of type Decimal.
procedure GetODPUnitCost(PeriodCode: Code[20]; ProdOrderNo: Code[20]; ProdOrderLineNo: Integer): Decimal
GetODPUnitCost.
PeriodCode Code[20]
Code[20].
ProdOrderNo Code[20]
Code[20].
ProdOrderLineNo Integer
Integer.
Returns Decimal
Return value of type Decimal.
procedure GetStandardLastCost(PeriodCode: Code[20]; ItemNo: Code[20]; StartDate: Date; EndDate: Date): Decimal
GetStandardLastCost.
PeriodCode Code[20]
Code[20].
ItemNo Code[20]
Code[20].
StartDate Date
Date.
EndDate Date
Date.
Returns Decimal
Return value of type Decimal.
procedure GetItemSpecificCostByPeriod(PeriodCode: Code[20]; ItemNo: Code[20]; VariantCode: Code[20]; LotNo: Code[50]; SerialNo: Code[50]; var ItemSpecificCost: Record "EOS Specific Cost"): Decimal
GetItemSpecificCostByPeriod.
PeriodCode Code[20]
Code[20].
ItemNo Code[20]
Code[20].
VariantCode Code[20]
Code[20].
LotNo Code[50]
Code[50].
SerialNo Code[50]
Code[50].
ItemSpecificCost Record "EOS Specific Cost"
VAR Record “EOS Specific Cost”.
Returns Decimal
Return value of type Decimal.
procedure GetItemSNLotCost(var Item: Record Item; PeriodCode: Code[20]; ReferenceDate: Date; var UnitCost: Decimal; var UnitOtherCost: Decimal): Decimal
GetItemSNLotCost.
Item Record "Item"
VAR Record Item.
PeriodCode Code[20]
Code[20].
ReferenceDate Date
Date.
UnitCost Decimal
VAR Decimal.
UnitOtherCost Decimal
VAR Decimal.
Returns Decimal
Return value of type Decimal.
procedure GetItemSpecificCost(var vRecItem: Record Item; PeriodCode: Code[20]; ReferenceDate: Date): Decimal
GetItemSpecificCost.
vRecItem Record "Item"
VAR Record Item.
PeriodCode Code[20]
Code[20].
ReferenceDate Date
Date.
Returns Decimal
Return value of type Decimal.
procedure CheckCostManagementType(ItemNo: Code[20])
CheckCostManagementType.
ItemNo Code[20]
Code[20].
procedure GetSpecificUnitCost(PeriodCode: Code[20]; ItemNo: Code[20]; VariantCode: Code[20]; LotNo: Code[50]; SNNo: Code[50]; var vDecUnitCost: Decimal): Boolean
GetSpecificUnitCost.
PeriodCode Code[20]
Code[20].
ItemNo Code[20]
Code[20].
VariantCode Code[20]
Code[20].
LotNo Code[50]
Code[50].
SNNo Code[50]
Code[50].
vDecUnitCost Decimal
VAR Decimal.
Returns Boolean
Return value of type Boolean.
procedure CalcCapLedgEntryCosts(PeriodCode: Code[20]; var CapLedgEntry: Record "Capacity Ledger Entry")
CalcCapLedgEntryCosts.
PeriodCode Code[20]
Code[20].
CapLedgEntry Record "Capacity Ledger Entry"
VAR Record “Capacity Ledger Entry”.
procedure GetCapacityUnitCosts(PeriodCode: Code[20]; ItemNo: Code[20]; RoutingNo: Code[20]; OperationNo: Code[10]; CapacityTypeJnl: Enum "Capacity Type Journal"; CapacityNo: Code[20]; var UnitCost: Decimal; var DirectUnitCost: Decimal; var OverheadUnitCost: Decimal)
GetCapacityUnitCosts.
PeriodCode Code[20]
Code[20].
ItemNo Code[20]
Code[20].
RoutingNo Code[20]
Code[20].
OperationNo Code[10]
Code[10].
CapacityTypeJnl Enum "Capacity Type Journal"
Enum “Capacity Type Journal”.
CapacityNo Code[20]
Code[20].
UnitCost Decimal
VAR Decimal.
DirectUnitCost Decimal
VAR Decimal.
OverheadUnitCost Decimal
VAR Decimal.
procedure GetRoutingHistoryUnitCost(RtngHistory: Record "EOS Routing History"): Decimal
GetRoutingHistoryUnitCost.
RtngHistory Record "EOS Routing History"
Record “EOS Routing History”.
Returns Decimal
Return value of type Decimal.
procedure GetCostComponents(ItemHistory: Record "EOS Item Cost History"; CostType: Option Standard,"Average","Weighed Average",LIFO,FIFO,Last; var SingleLevelCost: array[6] of Decimal; var RolledUpCost: array[6] of Decimal): Decimal
GetCostComponents.
ItemHistory Record "EOS Item Cost History"
Record “EOS Item Cost History”.
CostType Option
Standard
(0) , "Average"
(1) , "Weighed Average"
(2) , LIFO
(3) , FIFO
(4) , Last
(5)
Option Standard,“Average”,“Weighed Average”,LIFO,FIFO,Last.
SingleLevelCost Decimal
VAR array[6] of Decimal.
RolledUpCost Decimal
VAR array[6] of Decimal.
Returns Decimal
Return value of type Decimal.
procedure ForceCostComponents(ItemHistory: Record "EOS Item Cost History"; UnitCost: Decimal; var SingleLevelCost: array[6] of Decimal; var RolledUpCost: array[6] of Decimal)
ForceCostComponents.
ItemHistory Record "EOS Item Cost History"
Record “EOS Item Cost History”.
UnitCost Decimal
Decimal.
SingleLevelCost Decimal
VAR array[6] of Decimal.
RolledUpCost Decimal
VAR array[6] of Decimal.
procedure GetSpecificUnitCostRec(PeriodCode: Code[20]; ItemNo: Code[20]; VariantCode: Code[20]; LotNo: Code[50]; SNNo: Code[50]; var ItemHistory: Record "EOS Item Cost History"): Boolean
GetSpecificUnitCostRec.
PeriodCode Code[20]
Code[20].
ItemNo Code[20]
Code[20].
VariantCode Code[20]
Code[20].
LotNo Code[50]
Code[50].
SNNo Code[50]
Code[50].
ItemHistory Record "EOS Item Cost History"
VAR Record “EOS Item Cost History”.
Returns Boolean
Return value of type Boolean.
procedure QtyPerTimeUnitOfMeasure(WorkCenterNo: Code[20]; UnitOfMeasureCode: Code[10]): Decimal
QtyPerTimeUnitOfMeasure.
WorkCenterNo Code[20]
Code[20].
UnitOfMeasureCode Code[10]
Code[10].
Returns Decimal
Return value of type Decimal.
procedure CalcSubcCostPerUnit(RoutingHistory: Record "EOS Routing History"; SubcCostType: Enum "EOS Subcontracting Cost Priority"; var DirUnitCost: Decimal; var IndirCostPct: Decimal; var OvhdCost: Decimal; var UnitCost: Decimal; var UnitCostCalculation: Enum "Unit Cost Calculation Type")
CalcSubcCostPerUnit.
RoutingHistory Record "EOS Routing History"
Record “EOS Routing History”.
SubcCostType Enum "EOS Subcontracting Cost Priority"
Enum “EOS Subcontracting Cost Priority”.
DirUnitCost Decimal
VAR Decimal.
IndirCostPct Decimal
VAR Decimal.
OvhdCost Decimal
VAR Decimal.
UnitCost Decimal
VAR Decimal.
UnitCostCalculation Enum "Unit Cost Calculation Type"
VAR Option Time,Unit.
procedure EnableLimitCapacityCost(SetLimit: Boolean)
Boolean
procedure SetLimitCapacityCost(SetValueEntry: Integer)
Integer
procedure SaveLastEntryNo(var ItemCostHistory: Record "EOS Item Cost History"; LastEntryNo: Integer; TableType: Option Purchase,Output,SelfConsumption,Consumption,Value,Capacity)
ItemCostHistory Record "EOS Item Cost History"
LastEntryNo Integer
TableType Option
Purchase
(0) , Output
(1) , SelfConsumption
(2) , Consumption
(3) , Value
(4) , Capacity
(5)
procedure SetStandardCostMode(StdMode: Boolean)
Boolean
local procedure CalcSubcPrices(RoutingHistory: Record "EOS Routing History"; SubcCostType: Enum "EOS Subcontracting Cost Priority"; var DirUnitCost: Decimal; var IndirCostPct: Decimal; var OvhdCost: Decimal; var UnitCost: Decimal; var UnitCostCalculation: Enum "Unit Cost Calculation Type")
RoutingHistory Record "EOS Routing History"
SubcCostType Enum "EOS Subcontracting Cost Priority"
DirUnitCost Decimal
IndirCostPct Decimal
OvhdCost Decimal
UnitCost Decimal
UnitCostCalculation Enum "Unit Cost Calculation Type"
local procedure OnRunCalcSubcCostPerUnitActualEntries(RoutingHistory: Record "EOS Routing History"; SubcCostType: Enum "EOS Subcontracting Cost Priority"; var DirUnitCost: Decimal; var IndirCostPct: Decimal; var OvhdCost: Decimal; var UnitCost: Decimal; var UnitCostCalculation: Enum "Unit Cost Calculation Type"; var IsHandled: Boolean)
RoutingHistory Record "EOS Routing History"
SubcCostType Enum "EOS Subcontracting Cost Priority"
DirUnitCost Decimal
IndirCostPct Decimal
OvhdCost Decimal
UnitCost Decimal
UnitCostCalculation Enum "Unit Cost Calculation Type"
IsHandled Boolean
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.