Codeunit 18123477 EOS Item Cost Management

Codeunit 18123477 EOS Item Cost Management

Codeunit EOS Item Cost Management (ID 18123477).

Methods

CalculateHistoryQtyAmount

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

CalculateHistoryQtyAmount.

Parameters / Return Value

  • ItemHistory Record "EOS Item Cost History"

    VAR Record “EOS Item Cost History”.


CalcODPConsumptionQty

procedure CalcODPConsumptionQty(ProdOrderStatus: Enum "Production Order Status"; ProdOrderNo: Code[20]; ProdOrderLineNo: Integer; ProdOrderCompLineNo: Integer; MaterialNo: Code[20]; EndDate: Date): Decimal

CalcODPConsumptionQty.

Parameters / Return Value

  • ProdOrderStatus Enum "Production Order Status"

    Enum “Production Order Status”.

  • ProdOrderNo Code[20]

    Code[20].

  • ProdOrderLineNo Integer

    Integer.

  • ProdOrderCompLineNo Integer

    Integer.

  • MaterialNo Code[20]

    Code[20].

  • EndDate Date

    Date.

  • Returns Decimal

    Return value of type Decimal.


MaterialAverageCost

procedure MaterialAverageCost(PeriodCode: Code[20]; ItemNo: Code[20]; VariantCode: Code[20]; LocationCode: Code[20]; LotNo: Code[50]; SerialNo: Code[50]; StartDate: Date; EndDate: Date): Decimal

MaterialAverageCost.

Parameters / Return Value

  • PeriodCode Code[20]

    Code[20].

  • ItemNo Code[20]

    Code[20].

  • VariantCode Code[20]

    Code[20].

  • LocationCode Code[20]

    Code[20].

  • LotNo Code[50]

    Code[50].

  • SerialNo Code[50]

    Code[50].

  • StartDate Date

    Date.

  • EndDate Date

    Date.

  • Returns Decimal

    Return value of type Decimal.


GetProductionOrderStatus

procedure GetProductionOrderStatus(ProdOrderNo: Code[20]): Enum "Production Order Status"

GetProductionOrderStatus.

Parameters / Return Value

  • ProdOrderNo Code[20]

    Code[20].

  • Returns Enum "Production Order Status"

    Return value of type Enum “Production Order Status”.


IsSubcontractingLine

procedure IsSubcontractingLine(PeriodCode: Code[20]; ProdOrderRouting: Record "Prod. Order Routing Line"): Boolean

IsSubcontractingLine.

Parameters / Return Value

  • PeriodCode Code[20]

    Code[20].

  • ProdOrderRouting Record "Prod. Order Routing Line"

    Record “Prod. Order Routing Line”.

  • Returns Boolean

    Return value of type Boolean.


GetRcptLineUnitCostFromCLE

procedure GetRcptLineUnitCostFromCLE(CapacityLedgerEntry: Record "Capacity Ledger Entry"): Decimal

GetRcptLineUnitCostFromCLE.

Parameters / Return Value

  • CapacityLedgerEntry Record "Capacity Ledger Entry"

    Record “Capacity Ledger Entry”.

  • Returns Decimal

    Return value of type Decimal.


GetODPPerc

procedure GetODPPerc(ProdOrderNo: Code[20]; ProdOrderLineNo: Integer; StartDate: Date; EndDate: Date): Decimal

GetODPPerc.

Parameters / Return Value

  • ProdOrderNo Code[20]

    Code[20].

  • ProdOrderLineNo Integer

    Integer.

  • StartDate Date

    Date.

  • EndDate Date

    Date.

  • Returns Decimal

    Return value of type Decimal.


GetActualODPPerc

procedure GetActualODPPerc(ProdOrderNo: Code[20]; ProdOrderLineNo: Integer; StartDate: Date; EndDate: Date): Decimal

Parameters / Return Value

  • ProdOrderNo Code[20]

  • ProdOrderLineNo Integer

  • StartDate Date

  • EndDate Date

  • Returns Decimal


IsPOLocationIncluded

procedure IsPOLocationIncluded(PeriodCode: Code[20]; ProdOrderLine: Record "Prod. Order Line"): Boolean

IsPOLocationIncluded.

Parameters / Return Value

  • PeriodCode Code[20]

    Code[20].

  • ProdOrderLine Record "Prod. Order Line"

    Record “Prod. Order Line”.

  • Returns Boolean

    Return value of type Boolean.


BeforeStartCostPeriodCompatible

procedure BeforeStartCostPeriodCompatible(StartDate: Date; EndDate: Date; BeforeStartItemCost: Record "EOS Before Start Specific Cost"): Boolean

BeforeStartCostPeriodCompatible.

Parameters / Return Value

  • StartDate Date

    Date.

  • EndDate Date

    Date.

  • BeforeStartItemCost Record "EOS Before Start Specific Cost"

    Record “EOS Before Start Specific Cost”.

  • Returns Boolean

    Return value of type Boolean.


GetPrevYearPeriodCode

procedure GetPrevYearPeriodCode(PeriodCode: Code[20]): Code[20]

GetPrevYearPeriodCode.

Parameters / Return Value

  • PeriodCode Code[20]

    Code[20].

  • Returns Code[20]

    Return value of type Code[20].


GetItemFiscalCost

procedure GetItemFiscalCost(ItemNo: Code[20]; ReferenceDate: Date; ItemCostHistory: Record "EOS Item Cost History"): Decimal

GetItemFiscalCost.

Parameters / Return Value

  • ItemNo Code[20]

    Code[20].

  • ReferenceDate Date

    Date.

  • ItemCostHistory Record "EOS Item Cost History"

    Record “EOS Item Cost History”.

  • Returns Decimal

    Return value of type Decimal.


GetRolledUpCostComponent

procedure GetRolledUpCostComponent(ItemHistory: Record "EOS Item Cost History"; var RUMat: Decimal; var RUCap: Decimal; var RUSub: Decimal; var RUCapOvhd: Decimal; var RUMfgOvhd: Decimal; var RUOther: Decimal)

GetRolledUpCostComponent.

Parameters / Return Value

  • ItemHistory Record "EOS Item Cost History"

    Record “EOS Item Cost History”.

  • RUMat Decimal

    VAR Decimal.

  • RUCap Decimal

    VAR Decimal.

  • RUSub Decimal

    VAR Decimal.

  • RUCapOvhd Decimal

    VAR Decimal.

  • RUMfgOvhd Decimal

    VAR Decimal.

  • RUOther Decimal

    VAR Decimal.


GetProductionBOMHeaderUOMCode

procedure GetProductionBOMHeaderUOMCode(PeriodCode: Code[20]; ItemNo: Code[20]; BOMNo: Code[20]): Code[10]

GetProductionBOMHeaderUOMCode.

Parameters / Return Value

  • PeriodCode Code[20]

    Code[20].

  • ItemNo Code[20]

    Code[20].

  • BOMNo Code[20]

    Code[20].

  • Returns Code[10]

    Return value of type Code[10].


CalcProductionCost

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

CalcProductionCost.

Parameters / Return Value

  • ItemHistory Record "EOS Item Cost History"

    VAR Record “EOS Item Cost History”.


ArchiveItem

procedure ArchiveItem(PeriodCode: Code[20]; ItemNo: Code[20]; var ItemHistory: Record "EOS Item Cost History")

ArchiveItem.

Parameters / Return Value

  • PeriodCode Code[20]

    Code[20].

  • ItemNo Code[20]

    Code[20].

  • ItemHistory Record "EOS Item Cost History"

    VAR Record “EOS Item Cost History”.


ForceCostComponent

procedure ForceCostComponent(var ItemHistory: Record "EOS Item Cost History"; AverageCost: Decimal)

ForceCostComponent.

Parameters / Return Value

  • ItemHistory Record "EOS Item Cost History"

    VAR Record “EOS Item Cost History”.

  • AverageCost Decimal

    Decimal.


VariantCostCalculationEnabled

procedure VariantCostCalculationEnabled(PeriodCode: Code[20]; ItemNo: Code[20]): Boolean

VariantCostCalculationEnabled.

Parameters / Return Value

  • PeriodCode Code[20]

    Code[20].

  • ItemNo Code[20]

    Code[20].

  • Returns Boolean

    Return value of type Boolean.


ResetDetails

procedure ResetDetails()

ResetDetails.


SetDetails

procedure SetDetails(LotNo: Code[50]; SNNo: Code[50]; VariantCode: Code[10]; DetailCalc: Boolean)

SetDetails.

Parameters / Return Value

  • LotNo Code[50]

    Code[50].

  • SNNo Code[50]

    Code[50].

  • VariantCode Code[10]

    Code[10].

  • DetailCalc Boolean

    Boolean.


GetPrevItemCostHistory

procedure GetPrevItemCostHistory(ItemCostHistory: Record "EOS Item Cost History"; var PrevItemCostHistory: Record "EOS Item Cost History"): Boolean

GetPrevItemCostHistory.

Parameters / Return Value

  • ItemCostHistory Record "EOS Item Cost History"

    Record “EOS Item Cost History”.

  • PrevItemCostHistory Record "EOS Item Cost History"

    VAR Record “EOS Item Cost History”.

  • Returns Boolean

    Return value of type Boolean.


LotCostCalculationEnabled

procedure LotCostCalculationEnabled(ItemNo: Code[20]): Boolean

LotCostCalculationEnabled.

Parameters / Return Value

  • ItemNo Code[20]

    Code[20].

  • Returns Boolean

    Return value of type Boolean.


SNCostCalculationEnabled

procedure SNCostCalculationEnabled(ItemNo: Code[20]): Boolean

SNCostCalculationEnabled.

Parameters / Return Value

  • ItemNo Code[20]

    Code[20].

  • Returns Boolean

    Return value of type Boolean.


CalcInventory

procedure CalcInventory(var ItemCostHistory: Record "EOS Item Cost History")

CalcInventory.

Parameters / Return Value

  • ItemCostHistory Record "EOS Item Cost History"

    VAR Record “EOS Item Cost History”.


CalcInventoryByItem

procedure CalcInventoryByItem(PeriodCode: Code[20]; var Item: Record Item)

CalcInventoryByItem.

Parameters / Return Value

  • PeriodCode Code[20]

    Code[20].

  • Item Record "Item"

    VAR Record Item.


RunInitialCustomCodeunit

procedure RunInitialCustomCodeunit(CostingPeriod: Record "EOS Costing Period")

RunInitialCustomCodeunit.

Parameters / Return Value

  • CostingPeriod Record "EOS Costing Period"

    Record “EOS Costing Period”.


RunItemCustomCodeunit

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

RunItemCustomCodeunit.

Parameters / Return Value

  • ItemHistory Record "EOS Item Cost History"

    VAR Record “EOS Item Cost History”.


ItemValuationType

procedure ItemValuationType(PeriodCode: Code[20]; ItemNo: Code[20]): Integer

ItemValuationType.

Parameters / Return Value

  • PeriodCode Code[20]

    Code[20].

  • ItemNo Code[20]

    Code[20].

  • Returns Integer

    Return value of type Integer.


HasSpecificCost

procedure HasSpecificCost(PeriodCode: Code[20]; ItemNo: Code[20]): Boolean

HasSpecificCost.

Parameters / Return Value

  • PeriodCode Code[20]

    Code[20].

  • ItemNo Code[20]

    Code[20].

  • Returns Boolean

    Return value of type Boolean.


GetItemAdditionalCosts

procedure GetItemAdditionalCosts(PeriodCode: Code[20]; ItemNo: Code[20]; VariantCode: Code[20]; LotNo: Code[50]; SerialNo: Code[50]; var TempItemHistAdditionalCost: Record "EOS Item History Addit. Cost" temporary)

GetItemAdditionalCosts.

Parameters / Return Value

  • 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].

  • TempItemHistAdditionalCost Record "EOS Item History Addit. Cost"

    Temporary VAR Record “EOS Item History Addit. Cost”.


IsLocationIncluded

procedure IsLocationIncluded(PeriodCode: Code[20]; LocationCode: Code[10]): Boolean

IsLocationIncluded.

Parameters / Return Value

  • PeriodCode Code[20]

    Code[20].

  • LocationCode Code[10]

    Code[10].

  • Returns Boolean

    Return value of type Boolean.


CollectAssemblyOrders

procedure CollectAssemblyOrders(PeriodCode: Code[20]; StartDate: Date; EndDate: Date; ItemNo: Code[20]; var TempItemLedgerEntry: Record "Item Ledger Entry" temporary)

CollectAssemblyOrders.

Parameters / Return Value

  • PeriodCode Code[20]

    Code[20].

  • StartDate Date

    Date.

  • EndDate Date

    Date.

  • ItemNo Code[20]

    Code[20].

  • TempItemLedgerEntry Record "Item Ledger Entry"

    Temporary VAR Record “Item Ledger Entry”.


GetAssemblyLocationCode

procedure GetAssemblyLocationCode(OrderNo: Code[20]; PostingDate: Date): Code[10]

GetAssemblyLocationCode.

Parameters / Return Value

  • OrderNo Code[20]

    Code[20].

  • PostingDate Date

    Date.

  • Returns Code[10]

    Return value of type Code[10].


CalcProdOrderRtngLineCost

procedure CalcProdOrderRtngLineCost(ItemHistory: Record "EOS Item Cost History"; ProdOrderLine: Record "Prod. Order Line"; ProdOrderRouting: Record "Prod. Order Routing Line"; var UnitCostFase: Decimal; var OverheadCostFase: Decimal; var UnitTime: Decimal)

CalcProdOrderRtngLineCost.

Parameters / Return Value

  • ItemHistory Record "EOS Item Cost History"

    Record “EOS Item Cost History”.

  • ProdOrderLine Record "Prod. Order Line"

    Record “Prod. Order Line”.

  • ProdOrderRouting Record "Prod. Order Routing Line"

    Record “Prod. Order Routing Line”.

  • UnitCostFase Decimal

    VAR Decimal.

  • OverheadCostFase Decimal

    VAR Decimal.

  • UnitTime Decimal

    VAR Decimal.


Events

CalcLIFOBandQtyAmount

local procedure CalcLIFOBandQtyAmount(ItemCostHistory: Record "EOS Item Cost History"; ItemNo: Code[20]; EndDate: Date; var StartInventory: Decimal; EndInventory: Decimal; var PrevYearCost: Decimal)

Parameters / Return Value

  • ItemCostHistory Record "EOS Item Cost History"

  • ItemNo Code[20]

  • EndDate Date

  • StartInventory Decimal

  • EndInventory Decimal

  • PrevYearCost Decimal


OnRunCalcItemWACCost

local procedure OnRunCalcItemWACCost(var ItemCostingSetup: Record "EOS Item Costing Setup"; StartInventory: Decimal; EndInventory: Decimal; PrevYearCost: Decimal; AverageCost: Decimal; var CMP: Decimal; var Handled: Boolean)

Parameters / Return Value

  • ItemCostingSetup Record "EOS Item Costing Setup"

  • StartInventory Decimal

  • EndInventory Decimal

  • PrevYearCost Decimal

  • AverageCost Decimal

  • CMP Decimal

  • Handled Boolean


CalcItemLIFOCost

local procedure CalcItemLIFOCost(PeriodCode: Code[20]; ItemNo: Code[20]; AverageCost: Decimal; EndInventory: Decimal; EndDate: Date; var UnitCostCalculated: Decimal)

Parameters / Return Value

  • PeriodCode Code[20]

  • ItemNo Code[20]

  • AverageCost Decimal

  • EndInventory Decimal

  • EndDate Date

  • UnitCostCalculated Decimal


OnBeforeRoutingHistoryInsert

local procedure OnBeforeRoutingHistoryInsert(var RoutingHistory: record "EOS Routing History"; var Handled: Boolean)

Raised before insert of Routing History in function UpdateRoutingHistory when “Not Standard Line” = true.

Parameters / Return Value

  • RoutingHistory record "EOS Routing History"

    VAR record “EOS Routing History”.

  • Handled Boolean

    set to true if you want to skip record Routing History creation


CheckVariantLifoCategory

local procedure CheckVariantLifoCategory(PeriodCode: Code[20]; ItemVariant: Record "Item Variant")

Parameters / Return Value

  • PeriodCode Code[20]

  • ItemVariant Record "Item Variant"


CopyItemVariantLifoCategoryField

local procedure CopyItemVariantLifoCategoryField(var ItemVariantCostHistory: Record "EOS Item Variant Cost History"; ItemVariant: Record "Item Variant")

Parameters / Return Value

  • ItemVariantCostHistory Record "EOS Item Variant Cost History"

  • ItemVariant Record "Item Variant"


OnRunInitialCustomOneTimeCalcCost

local procedure OnRunInitialCustomOneTimeCalcCost(CostingPeriod: Record "EOS Costing Period")

Raised before execute Calc. Low-Level Code in report Calculate Actual Cost.

Parameters / Return Value

  • CostingPeriod Record "EOS Costing Period"

    Parameter of type Record “EOS Costing Period”.


OnBeforeRunCustomAdditionalCost

local procedure OnBeforeRunCustomAdditionalCost(var ItemHistory: Record "EOS Item Cost History"; var Handled: Boolean)

Raised before execute calculation of additional cost by codeunit 18123474 AdditCostForRollupCostType.

Parameters / Return Value

  • ItemHistory Record "EOS Item Cost History"

    Parameter of type Record “EOS Item Cost History”.

  • Handled Boolean

    set to true if you want to skip the additional cost calculation.


OnBeforeRunCustomRollupCostType

local procedure OnBeforeRunCustomRollupCostType(var ItemHistory: Record "EOS Item Cost History"; var Handled: Boolean)

Raised before execute OnRunCustomRollupCostType.

Parameters / Return Value

  • ItemHistory Record "EOS Item Cost History"

    Parameter of type Record “EOS Item Cost History”.

  • Handled Boolean

    if flag is on, the standard code for calculating additional costs by cost type will not be executed


OnRunCalcItemVariantWACCost

local procedure OnRunCalcItemVariantWACCost(var ItemCostingSetup: Record "EOS Item Costing Setup"; ItemCostHistory: Record "EOS Item Cost History"; StartInventory: Decimal; PrevYearCost: Decimal; var CMP: Decimal; var Handled: Boolean)

Parameters / Return Value

  • ItemCostingSetup Record "EOS Item Costing Setup"

  • ItemCostHistory Record "EOS Item Cost History"

  • StartInventory Decimal

  • PrevYearCost Decimal

  • CMP Decimal

  • Handled Boolean


OnCalcInventoryByItemOnBeforeCalcNetChange

local procedure OnCalcInventoryByItemOnBeforeCalcNetChange(var Item: Record "Item"; CostingPeriodCode: Code[20])

Raised before calculate flowfield “Net Change” of table “Item” in function CalcInventoryByItem.

Parameters / Return Value

  • Item Record "Item"

    Parameter of type Record “Item”.

  • CostingPeriodCode Code[20]

    Costing Period Code


OnCalcInventoryByItemOnAfterCalcNetChange

local procedure OnCalcInventoryByItemOnAfterCalcNetChange(var Item: Record "Item"; CostingPeriodCode: Code[20])

Raised after calculate flowfield “Net Change” of table “Item” in function CalcInventoryByItem.

Parameters / Return Value

  • Item Record "Item"

    Parameter of type Record “Item”.

  • CostingPeriodCode Code[20]

    Costing Period Code


OnBeforeItemToSkip

local procedure OnBeforeItemToSkip(var ItemHistory: Record "EOS Item Cost History"; var SkipItem: Boolean; var IsHandled: Boolean)

Parameters / Return Value

  • ItemHistory Record "EOS Item Cost History"

  • SkipItem Boolean

  • IsHandled Boolean


OnBeforeAssignPurchaseAmountAddAmountQty

local procedure OnBeforeAssignPurchaseAmountAddAmountQty(ItemLedgEntry: Record "Item Ledger Entry"; ValueEntry: Record "Value Entry"; var ItemHistory: Record "EOS Item Cost History"; var SkipAssignValue: Boolean)

Raised before assign value to field “Purchase Amount” of table “EOS Item Cost History” in function AddAmount.

Parameters / Return Value

  • ItemLedgEntry Record "Item Ledger Entry"

    Parameter of type Record “Item Ledger Entry”.

  • ValueEntry Record "Value Entry"

    Parameter of type Record “Value Entry”.

  • ItemHistory Record "EOS Item Cost History"

    Parameter of type Record “EOS Item Cost History”.

  • SkipAssignValue Boolean

    set to true if you want to skip the value assignment.


OnBeforeAssignNotInvoicedPurchaseAmountAddAmountQty

local procedure OnBeforeAssignNotInvoicedPurchaseAmountAddAmountQty(ItemLedgEntry: Record "Item Ledger Entry"; ValueEntry: Record "Value Entry"; var ItemHistory: Record "EOS Item Cost History"; var Handled: Boolean)

Raised before assign value to field “Not Invoiced Purchase Amount” of table “EOS Item Cost History” in function AddAmount.

Parameters / Return Value

  • ItemLedgEntry Record "Item Ledger Entry"

    Parameter of type Record “Item Ledger Entry”.

  • ValueEntry Record "Value Entry"

    Parameter of type Record “Value Entry”.

  • ItemHistory Record "EOS Item Cost History"

    Parameter of type Record “EOS Item Cost History”.

  • Handled Boolean

    set to true if you want to skip the value assignment.


OnBeforeAddAmountQty

local procedure OnBeforeAddAmountQty(ItemLedgEntry: Record "Item Ledger Entry"; var ItemHistory: Record "EOS Item Cost History"; var Handled: Boolean)

Raised before execute function AddAmountQty (this function collect Quantity of Item Ledger Entry and related Value Entry).

Parameters / Return Value

  • ItemLedgEntry Record "Item Ledger Entry"

    Parameter of type Record “Item Ledger Entry”.

  • ItemHistory Record "EOS Item Cost History"

    Parameter of type Record “EOS Item Cost History”.

  • Handled Boolean

    set to true if you want to skip the AddAmountQty function


OnCalcInventoryByItemOnAfterSetFilterSkipJobEntryOnItemLedgerEntry

local procedure OnCalcInventoryByItemOnAfterSetFilterSkipJobEntryOnItemLedgerEntry(var ItemLedgerEntry: Record "Item Ledger Entry")

Raised after set filter to field “Job No.” of table “EOS Item Cost History” in function CalcInventoryByItem.

Parameters / Return Value

  • ItemLedgerEntry Record "Item Ledger Entry"

    Parameter of type Record “Item Ledger Entry”.


OnAfterSetFilterSkipJobEntryOnItemLedgerEntry

local procedure OnAfterSetFilterSkipJobEntryOnItemLedgerEntry(var ItemLedgerEntry: Record "Item Ledger Entry"; CostingPeriodCode: Code[20]; ItemNo: Code[20])

Raised after set filter to field “Job No.” of table “EOS Item Cost History”.

Parameters / Return Value

  • ItemLedgerEntry Record "Item Ledger Entry"

    Parameter of type Record “Item Ledger Entry”.

  • CostingPeriodCode Code[20]

    Costing Period Code

  • ItemNo Code[20]

    Item No.


OnAfterSetFiltersConsumptionOnCalcTrueManufCost

local procedure OnAfterSetFiltersConsumptionOnCalcTrueManufCost(var ItemLedgerEntry: Record "Item Ledger Entry"; CostingPeriodCode: Code[20]; ItemNo: Code[20])

Raised after set filters to table Item Ledger Entry of consumption entry type”.

Parameters / Return Value

  • ItemLedgerEntry Record "Item Ledger Entry"

    Parameter of type Record “Item Ledger Entry”.

  • CostingPeriodCode Code[20]

    Costing Period Code

  • ItemNo Code[20]

    Item No.


OnAfterCalculateCost

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

Parameters / Return Value

  • ItemHistory Record "EOS Item Cost History"

OnRunArchiveItemBeforeCalculateHistoryQtyAmount

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

Parameters / Return Value

  • ItemHistory Record "EOS Item Cost History"

OnAfterCalcEndPeriodInventory

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

Parameters / Return Value

  • ItemHistory Record "EOS Item Cost History"

OnCalculateLotCostAfterCalcEndPeriodInventory

local procedure OnCalculateLotCostAfterCalcEndPeriodInventory(PeriodCode: Code[20]; var ItemSpecificCost: Record "EOS Specific Cost")

Parameters / Return Value

  • PeriodCode Code[20]

  • ItemSpecificCost Record "EOS Specific Cost"


OnCalcExtimatedManufCostOpenPOSkipCapacityLedgerEntry

local procedure OnCalcExtimatedManufCostOpenPOSkipCapacityLedgerEntry(ItemHistory: Record "EOS Item Cost History"; ProdOrderLine: Record "Prod. Order Line"; ProdOrderRoutingLine: Record "Prod. Order Routing Line"; var Handled: Boolean)

Parameters / Return Value

  • ItemHistory Record "EOS Item Cost History"

  • ProdOrderLine Record "Prod. Order Line"

  • ProdOrderRoutingLine Record "Prod. Order Routing Line"

  • Handled Boolean


OnCalcExtimatedManufCostFinishPOSkipCapacityLedgerEntry

local procedure OnCalcExtimatedManufCostFinishPOSkipCapacityLedgerEntry(ItemHistory: Record "EOS Item Cost History"; ProdOrderLine: Record "Prod. Order Line"; CapacityLedgerEntry: Record "Capacity Ledger Entry"; var Handled: Boolean)

Parameters / Return Value

  • ItemHistory Record "EOS Item Cost History"

  • ProdOrderLine Record "Prod. Order Line"

  • CapacityLedgerEntry Record "Capacity Ledger Entry"

  • Handled Boolean


OnCalcTrueManufCostSkipCapacityLedgerEntry

local procedure OnCalcTrueManufCostSkipCapacityLedgerEntry(ItemHistory: Record "EOS Item Cost History"; CapacityLedgerEntry: Record "Capacity Ledger Entry"; var Handled: Boolean)

Parameters / Return Value

  • ItemHistory Record "EOS Item Cost History"

  • CapacityLedgerEntry Record "Capacity Ledger Entry"

  • Handled Boolean


OnCalcTrueManufCostCalcSubcontractingAmount

local procedure OnCalcTrueManufCostCalcSubcontractingAmount(var ItemHistory: Record "EOS Item Cost History"; CapacityLedgerEntry: Record "Capacity Ledger Entry"; var RoutingAmount: Decimal; var RoutingOverheadAmount: Decimal; ODPPerc: Decimal; var Handled: Boolean)

Parameters / Return Value

  • ItemHistory Record "EOS Item Cost History"

  • CapacityLedgerEntry Record "Capacity Ledger Entry"

  • RoutingAmount Decimal

  • RoutingOverheadAmount Decimal

  • ODPPerc Decimal

  • Handled Boolean


OnCalcTrueManufCostSkipItemLedgerEntry

local procedure OnCalcTrueManufCostSkipItemLedgerEntry(var ItemHistory: Record "EOS Item Cost History"; ItemLedgerEntry: Record "Item Ledger Entry"; StartDate: Date; EndDate: Date; var Handled: Boolean)

Parameters / Return Value

  • ItemHistory Record "EOS Item Cost History"

  • ItemLedgerEntry Record "Item Ledger Entry"

  • StartDate Date

  • EndDate Date

  • Handled Boolean


OnCalcTrueMaterialCostSkipItemLedgerEntry

local procedure OnCalcTrueMaterialCostSkipItemLedgerEntry(var ItemHistory: Record "EOS Item Cost History"; ItemLedgerEntry: Record "Item Ledger Entry"; StartDate: Date; EndDate: Date; var Handled: Boolean)

Parameters / Return Value

  • ItemHistory Record "EOS Item Cost History"

  • ItemLedgerEntry Record "Item Ledger Entry"

  • StartDate Date

  • EndDate Date

  • Handled Boolean


OnBeforeAddAmountQtyLifoFifo

local procedure OnBeforeAddAmountQtyLifoFifo(ItemLedgerEntry: Record "Item Ledger Entry"; EntryQty: Decimal; Search: Boolean; var ItemHistory: Record "EOS Item Cost History"; var SkipAddAmountQty: Boolean)

Parameters / Return Value

  • ItemLedgerEntry Record "Item Ledger Entry"

  • EntryQty Decimal

  • Search Boolean

  • ItemHistory Record "EOS Item Cost History"

  • SkipAddAmountQty Boolean


OnBeforeSetRemainingQtyOnCalcPurchaseAmountLifoFifo

local procedure OnBeforeSetRemainingQtyOnCalcPurchaseAmountLifoFifo(ItemLedgerEntry: Record "Item Ledger Entry"; Search: Boolean; var ItemHistory: Record "EOS Item Cost History"; var SkipItemLedgerEntry: Boolean)

Parameters / Return Value

  • ItemLedgerEntry Record "Item Ledger Entry"

  • Search Boolean

  • ItemHistory Record "EOS Item Cost History"

  • SkipItemLedgerEntry Boolean


OnBeforeSetRemainingQtyOnCalcPurchOutputLifoFifo

local procedure OnBeforeSetRemainingQtyOnCalcPurchOutputLifoFifo(ItemLedgerEntry: Record "Item Ledger Entry"; Search: Boolean; var ItemHistory: Record "EOS Item Cost History"; var SkipItemLedgerEntry: Boolean)

Parameters / Return Value

  • ItemLedgerEntry Record "Item Ledger Entry"

  • Search Boolean

  • ItemHistory Record "EOS Item Cost History"

  • SkipItemLedgerEntry Boolean


OnBeforeInsertTempSNInfo

local procedure OnBeforeInsertTempSNInfo(ItemNo: Code[20]; SerialNo: Code[50]; CostingPeriod: Record "EOS Costing Period"; var SkipSN: Boolean; var IsHandled: Boolean)

Parameters / Return Value

  • ItemNo Code[20]

  • SerialNo Code[50]

  • CostingPeriod Record "EOS Costing Period"

  • SkipSN Boolean

  • IsHandled Boolean


OnBeforeCalcDetailCost

local procedure OnBeforeCalcDetailCost(var ItemHistory: Record "EOS Item Cost History"; var IsHandled: Boolean)

Parameters / Return Value

  • ItemHistory Record "EOS Item Cost History"

  • IsHandled Boolean


OnAfterCalcDetailCost

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

Parameters / Return Value

  • ItemHistory Record "EOS Item Cost History"

OnAfterCalculateProcessedQty

local procedure OnAfterCalculateProcessedQty(StartDate: Date; EndDate: Date; CostingPeriod: Record "EOS Costing Period"; var ItemHistory: Record "EOS Item Cost History")

Parameters / Return Value

  • StartDate Date

  • EndDate Date

  • CostingPeriod Record "EOS Costing Period"

  • ItemHistory Record "EOS Item Cost History"


OnBeforeCalcPurchaseAmountLifoFifo

local procedure OnBeforeCalcPurchaseAmountLifoFifo(MaxQty: Decimal; Search: Boolean; StartDate: Date; EndDate: Date; var ItemHistory: Record "EOS Item Cost History"; var IsHandled: Boolean)

Parameters / Return Value

  • MaxQty Decimal

  • Search Boolean

  • StartDate Date

  • EndDate Date

  • ItemHistory Record "EOS Item Cost History"

  • IsHandled Boolean


OnBeforeExistFIFOAdditionalCostPercentage

local procedure OnBeforeExistFIFOAdditionalCostPercentage(ItemHistory: Record "EOS Item Cost History"; var ItemHistAdditionalCost: Record "EOS Item History Addit. Cost")

Parameters / Return Value

  • ItemHistory Record "EOS Item Cost History"

  • ItemHistAdditionalCost Record "EOS Item History Addit. Cost"


OnBeforeCalcFIFOAdditionalCostPercentage

local procedure OnBeforeCalcFIFOAdditionalCostPercentage(ItemHistory: Record "EOS Item Cost History"; var ItemHistAdditionalCost: Record "EOS Item History Addit. Cost")

Parameters / Return Value

  • ItemHistory Record "EOS Item Cost History"

  • ItemHistAdditionalCost Record "EOS Item History Addit. Cost"


OnBeforeSumUpFIFOAdditionalCost

local procedure OnBeforeSumUpFIFOAdditionalCost(ItemHistory: Record "EOS Item Cost History"; var ItemHistAdditionalCost: Record "EOS Item History Addit. Cost")

Parameters / Return Value

  • ItemHistory Record "EOS Item Cost History"

  • ItemHistAdditionalCost Record "EOS Item History Addit. Cost"


OnBeforeCalcPurchOutputLifoFifo

local procedure OnBeforeCalcPurchOutputLifoFifo(MaxQty: Decimal; Search: Boolean; StartDate: Date; EndDate: Date; var ItemHistory: Record "EOS Item Cost History"; var IsHandled: Boolean)

Parameters / Return Value

  • MaxQty Decimal

  • Search Boolean

  • StartDate Date

  • EndDate Date

  • ItemHistory Record "EOS Item Cost History"

  • IsHandled Boolean


OnBeforeCalcTransformedQtySkipItemLedgerEntry

local procedure OnBeforeCalcTransformedQtySkipItemLedgerEntry(ItemLedgerEntry: Record "Item Ledger Entry"; CostingPeriod: Record "EOS Costing Period"; var ItemHistory: Record "EOS Item Cost History"; var SkipEntry: Boolean)

Parameters / Return Value

  • ItemLedgerEntry Record "Item Ledger Entry"

  • CostingPeriod Record "EOS Costing Period"

  • ItemHistory Record "EOS Item Cost History"

  • SkipEntry Boolean



EOS Labs -