Table of Contents

Table "Inventory Adjmt. Entry (Order)"

ID 5896
Namespace: Microsoft.Inventory.Costing

Properties

Name Value
Caption Inventory Adjmt. Entry (Order)
Permissions TableData "Inventory Adjmt. Entry (Order)" = i
LookupPageId Page Microsoft.Inventory.Costing."Inventory Adjmt. Entry Orders"
DataClassification CustomerContent

Fields

Name Type Description
"Order Type" Enum Microsoft.Foundation.Enums."Inventory Order Type"

Specifies which type of order that the entry was created in.

"Order No." Code[20]

Specifies the number of the order that the entry was created in.

"Order Line No." Integer

Specifies the line number of the order that the entry was created in.

"Item No." Code[20]

Specifies the item number.

"Indirect Cost %" Decimal
"Overhead Rate" Decimal
"Cost is Adjusted" Boolean

Specifies whether the cost of the order has been adjusted.

"Allow Online Adjustment" Boolean
"Unit Cost" Decimal
"Direct Cost" Decimal
"Indirect Cost" Decimal
"Single-Level Material Cost" Decimal
"Single-Level Capacity Cost" Decimal
"Single-Level Subcontrd. Cost" Decimal
"Single-Level Cap. Ovhd Cost" Decimal
"Single-Level Mfg. Ovhd Cost" Decimal
"Direct Cost (ACY)" Decimal
"Indirect Cost (ACY)" Decimal
"Single-Lvl Material Cost (ACY)" Decimal
"Single-Lvl Capacity Cost (ACY)" Decimal
"Single-Lvl Subcontrd Cost(ACY)" Decimal
"Single-Lvl Cap. Ovhd Cost(ACY)" Decimal
"Single-Lvl Mfg. Ovhd Cost(ACY)" Decimal
"Completely Invoiced" Boolean

Specifies whether the entry has been fully invoiced.

"Is Finished" Boolean

Specifies that the order is finished and that its cost will be adjusted.

"Direct Cost Non-Inventory" Decimal
"Direct Cost Non-Inv. (ACY)" Decimal
"Single-Lvl Mat. Non-Invt. Cost" Decimal

Specifies the total Non-inventory material cost of all components on the parent item's BOM.

"Single-Lvl Mat.NonInvCost(ACY)" Decimal
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemCreatedByUserName Text[50]
SystemCreatedByFullName Text[80]
SystemModifiedByUserName Text[50]
SystemModifiedByFullName Text[80]
SystemRowVersion BigInteger

Methods

RoundCosts

procedure RoundCosts(ShareOfTotalCost: Decimal)

Parameters

Name Type Description
ShareOfTotalCost Decimal

CalcOvhdCost

procedure CalcOvhdCost(OutputQty: Decimal)

Parameters

Name Type Description
OutputQty Decimal

GetCostsFromItem

procedure GetCostsFromItem(OutputQty: Decimal)

Parameters

Name Type Description
OutputQty Decimal

GetUnitCostsFromItem

procedure GetUnitCostsFromItem()

GetUnitCostsFromProdOrderLine

procedure GetUnitCostsFromProdOrderLine()

CalcDirectCostFromCostShares

procedure CalcDirectCostFromCostShares()

CalcIndirectCostFromCostShares

procedure CalcIndirectCostFromCostShares()

CalcUnitCost

procedure CalcUnitCost()

CalcDiff

procedure CalcDiff(var InvtAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; OnlyCostShares: Boolean)

Parameters

Name Type Description
InvtAdjmtEntryOrder Table Microsoft.Inventory.Costing."Inventory Adjmt. Entry (Order)"
OnlyCostShares Boolean

AddDirectCost

procedure AddDirectCost(CostAmtLCY: Decimal; CostAmtACY: Decimal)

Parameters

Name Type Description
CostAmtLCY Decimal
CostAmtACY Decimal

AddIndirectCost

procedure AddIndirectCost(CostAmtLCY: Decimal; CostAmtACY: Decimal)

Parameters

Name Type Description
CostAmtLCY Decimal
CostAmtACY Decimal

AddDirectCostNonInv

procedure AddDirectCostNonInv(CostAmtLCY: Decimal; CostAmtACY: Decimal)

Parameters

Name Type Description
CostAmtLCY Decimal
CostAmtACY Decimal

AddSingleLvlMaterialCost

procedure AddSingleLvlMaterialCost(CostAmtLCY: Decimal; CostAmtACY: Decimal)

Parameters

Name Type Description
CostAmtLCY Decimal
CostAmtACY Decimal

AddSingleLvlNonInvMaterialCost

procedure AddSingleLvlNonInvMaterialCost(CostAmtLCY: Decimal; CostAmtACY: Decimal)

Parameters

Name Type Description
CostAmtLCY Decimal
CostAmtACY Decimal

AddSingleLvlCapacityCost

procedure AddSingleLvlCapacityCost(CostAmtLCY: Decimal; CostAmtACY: Decimal)

Parameters

Name Type Description
CostAmtLCY Decimal
CostAmtACY Decimal

AddSingleLvlSubcontrdCost

procedure AddSingleLvlSubcontrdCost(CostAmtLCY: Decimal; CostAmtACY: Decimal)

Parameters

Name Type Description
CostAmtLCY Decimal
CostAmtACY Decimal

AddSingleLvlCapOvhdCost

procedure AddSingleLvlCapOvhdCost(CostAmtLCY: Decimal; CostAmtACY: Decimal)

Parameters

Name Type Description
CostAmtLCY Decimal
CostAmtACY Decimal

AddSingleLvlMfgOvhdCost

procedure AddSingleLvlMfgOvhdCost(CostAmtLCY: Decimal; CostAmtACY: Decimal)

Parameters

Name Type Description
CostAmtLCY Decimal
CostAmtACY Decimal

RoundCost

procedure RoundCost(Cost: Decimal; ShareOfTotal: Decimal; var RndRes: Decimal; AmtRndgPrec2: Decimal): Decimal

Parameters

Name Type Description
Cost Decimal
ShareOfTotal Decimal
RndRes Decimal
AmtRndgPrec2 Decimal

Returns

Type Description
Decimal

RunCostAdjustment

procedure RunCostAdjustment(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)")

Parameters

Name Type Description
InventoryAdjmtEntryOrder Table Microsoft.Inventory.Costing."Inventory Adjmt. Entry (Order)"

Events

OnAfterCalcOvhdCost

[IntegrationEvent(False,False)]
local procedure OnAfterCalcOvhdCost(xInventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; GeneralLedgerSetup: Record "General Ledger Setup"; OutputQty: Decimal; AmtRndgPrec: Decimal; AmtRndgPrecACY: Decimal; CurrencyFactor: Decimal)

Parameters

Name Type Description
xInventoryAdjmtEntryOrder Table Microsoft.Inventory.Costing."Inventory Adjmt. Entry (Order)"
InventoryAdjmtEntryOrder Table Microsoft.Inventory.Costing."Inventory Adjmt. Entry (Order)"
GeneralLedgerSetup Table Microsoft.Finance.GeneralLedger.Setup."General Ledger Setup"
OutputQty Decimal
AmtRndgPrec Decimal
AmtRndgPrecACY Decimal
CurrencyFactor Decimal

OnAfterCalcDiff

[IntegrationEvent(False,False)]
local procedure OnAfterCalcDiff(var InvtAdjmtEntryOrderRec: Record "Inventory Adjmt. Entry (Order)"; var InvtAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; OnlyCostShares: Boolean)

Parameters

Name Type Description
InvtAdjmtEntryOrderRec Table Microsoft.Inventory.Costing."Inventory Adjmt. Entry (Order)"
InvtAdjmtEntryOrder Table Microsoft.Inventory.Costing."Inventory Adjmt. Entry (Order)"
OnlyCostShares Boolean

OnAfterCalcDirectCostFromCostShares

[IntegrationEvent(False,False)]
local procedure OnAfterCalcDirectCostFromCostShares(var InvtAdjmtEntryOrderRec: Record "Inventory Adjmt. Entry (Order)")

Parameters

Name Type Description
InvtAdjmtEntryOrderRec Table Microsoft.Inventory.Costing."Inventory Adjmt. Entry (Order)"

OnAfterGetSingleLevelCosts

[IntegrationEvent(False,False)]
local procedure OnAfterGetSingleLevelCosts(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; Item: Record Item)

Parameters

Name Type Description
InventoryAdjmtEntryOrder Table Microsoft.Inventory.Costing."Inventory Adjmt. Entry (Order)"
Item Table Microsoft.Inventory.Item.Item

OnAfterRoundAmounts

[IntegrationEvent(False,False)]
local procedure OnAfterRoundAmounts(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; RndPrecLCY: Decimal; RndPrecACY: Decimal; ShareOfTotalCost: Decimal; RndResLCY: Decimal; RndResACY: Decimal)

Parameters

Name Type Description
InventoryAdjmtEntryOrder Table Microsoft.Inventory.Costing."Inventory Adjmt. Entry (Order)"
RndPrecLCY Decimal
RndPrecACY Decimal
ShareOfTotalCost Decimal
RndResLCY Decimal
RndResACY Decimal

OnAfterAddSingleLvlMaterialCost

[IntegrationEvent(False,False)]
local procedure OnAfterAddSingleLvlMaterialCost(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; var CostAmtLCY: Decimal; var CostAmtACY: Decimal)

Parameters

Name Type Description
InventoryAdjmtEntryOrder Table Microsoft.Inventory.Costing."Inventory Adjmt. Entry (Order)"
CostAmtLCY Decimal
CostAmtACY Decimal

OnBeforeAddSingleLvlMaterialCost

[IntegrationEvent(False,False)]
local procedure OnBeforeAddSingleLvlMaterialCost(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; var CostAmtLCY: Decimal; var CostAmtACY: Decimal)

Parameters

Name Type Description
InventoryAdjmtEntryOrder Table Microsoft.Inventory.Costing."Inventory Adjmt. Entry (Order)"
CostAmtLCY Decimal
CostAmtACY Decimal

OnAfterAddSingleLvlCapacityCost

[IntegrationEvent(False,False)]
local procedure OnAfterAddSingleLvlCapacityCost(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; var CostAmtLCY: Decimal; var CostAmtACY: Decimal)

Parameters

Name Type Description
InventoryAdjmtEntryOrder Table Microsoft.Inventory.Costing."Inventory Adjmt. Entry (Order)"
CostAmtLCY Decimal
CostAmtACY Decimal

OnBeforeAddSingleLvlCapacityCost

[IntegrationEvent(False,False)]
local procedure OnBeforeAddSingleLvlCapacityCost(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; var CostAmtLCY: Decimal; var CostAmtACY: Decimal)

Parameters

Name Type Description
InventoryAdjmtEntryOrder Table Microsoft.Inventory.Costing."Inventory Adjmt. Entry (Order)"
CostAmtLCY Decimal
CostAmtACY Decimal

OnAfterAddSingleLvlSubcontrdCost

[IntegrationEvent(False,False)]
local procedure OnAfterAddSingleLvlSubcontrdCost(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; var CostAmtLCY: Decimal; var CostAmtACY: Decimal)

Parameters

Name Type Description
InventoryAdjmtEntryOrder Table Microsoft.Inventory.Costing."Inventory Adjmt. Entry (Order)"
CostAmtLCY Decimal
CostAmtACY Decimal

OnBeforeAddSingleLvlSubcontrdCost

[IntegrationEvent(False,False)]
local procedure OnBeforeAddSingleLvlSubcontrdCost(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; var CostAmtLCY: Decimal; var CostAmtACY: Decimal)

Parameters

Name Type Description
InventoryAdjmtEntryOrder Table Microsoft.Inventory.Costing."Inventory Adjmt. Entry (Order)"
CostAmtLCY Decimal
CostAmtACY Decimal

OnAfterAddSingleLvlCapOvhdCost

[IntegrationEvent(False,False)]
local procedure OnAfterAddSingleLvlCapOvhdCost(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; var CostAmtLCY: Decimal; var CostAmtACY: Decimal)

Parameters

Name Type Description
InventoryAdjmtEntryOrder Table Microsoft.Inventory.Costing."Inventory Adjmt. Entry (Order)"
CostAmtLCY Decimal
CostAmtACY Decimal

OnBeforeAddSingleLvlCapOvhdCost

[IntegrationEvent(False,False)]
local procedure OnBeforeAddSingleLvlCapOvhdCost(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; var CostAmtLCY: Decimal; var CostAmtACY: Decimal)

Parameters

Name Type Description
InventoryAdjmtEntryOrder Table Microsoft.Inventory.Costing."Inventory Adjmt. Entry (Order)"
CostAmtLCY Decimal
CostAmtACY Decimal

OnAfterAddSingleLvlMfgOvhdCost

[IntegrationEvent(False,False)]
local procedure OnAfterAddSingleLvlMfgOvhdCost(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; var CostAmtLCY: Decimal; var CostAmtACY: Decimal)

Parameters

Name Type Description
InventoryAdjmtEntryOrder Table Microsoft.Inventory.Costing."Inventory Adjmt. Entry (Order)"
CostAmtLCY Decimal
CostAmtACY Decimal

OnBeforeAddSingleLvlMfgOvhdCost

[IntegrationEvent(False,False)]
local procedure OnBeforeAddSingleLvlMfgOvhdCost(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; var CostAmtLCY: Decimal; var CostAmtACY: Decimal)

Parameters

Name Type Description
InventoryAdjmtEntryOrder Table Microsoft.Inventory.Costing."Inventory Adjmt. Entry (Order)"
CostAmtLCY Decimal
CostAmtACY Decimal

OnCalcCurrencyFactorOnAfterSetFilters

[IntegrationEvent(False,False)]
local procedure OnCalcCurrencyFactorOnAfterSetFilters(var OutputItemLedgEntry: Record "Item Ledger Entry"; InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)")

Parameters

Name Type Description
OutputItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
InventoryAdjmtEntryOrder Table Microsoft.Inventory.Costing."Inventory Adjmt. Entry (Order)"

OnGetUnroundedCostsFromItemOnAfterGetItem

[IntegrationEvent(False,False)]
local procedure OnGetUnroundedCostsFromItemOnAfterGetItem(var Item: Record Item; var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)")

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
InventoryAdjmtEntryOrder Table Microsoft.Inventory.Costing."Inventory Adjmt. Entry (Order)"

OnGetSingleLevelCostsOnAfterCopyCostsLCY

[IntegrationEvent(False,False)]
local procedure OnGetSingleLevelCostsOnAfterCopyCostsLCY(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; Item: Record Item)

Parameters

Name Type Description
InventoryAdjmtEntryOrder Table Microsoft.Inventory.Costing."Inventory Adjmt. Entry (Order)"
Item Table Microsoft.Inventory.Item.Item

OnGetSingleLevelCostsOnAfterCopyCostsACY

[IntegrationEvent(False,False)]
local procedure OnGetSingleLevelCostsOnAfterCopyCostsACY(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; Item: Record Item; CurrExchRate: Decimal)

Parameters

Name Type Description
InventoryAdjmtEntryOrder Table Microsoft.Inventory.Costing."Inventory Adjmt. Entry (Order)"
Item Table Microsoft.Inventory.Item.Item
CurrExchRate Decimal

OnUpdatedFromSKUOnAfterCopyCostFromSKU

[IntegrationEvent(False,False)]
local procedure OnUpdatedFromSKUOnAfterCopyCostFromSKU(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; StockkeepingUnit: Record "Stockkeeping Unit")

Parameters

Name Type Description
InventoryAdjmtEntryOrder Table Microsoft.Inventory.Costing."Inventory Adjmt. Entry (Order)"
StockkeepingUnit Table Microsoft.Inventory.Location."Stockkeeping Unit"

OnAfterCalcUnitCost

[IntegrationEvent(False,False)]
local procedure OnAfterCalcUnitCost(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)")

Parameters

Name Type Description
InventoryAdjmtEntryOrder Table Microsoft.Inventory.Costing."Inventory Adjmt. Entry (Order)"

OnAddDirectCostNonInv

[IntegrationEvent(False,False)]
local procedure OnAddDirectCostNonInv(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; CostAmtLCY: Decimal; CostAmtACY: Decimal)

Parameters

Name Type Description
InventoryAdjmtEntryOrder Table Microsoft.Inventory.Costing."Inventory Adjmt. Entry (Order)"
CostAmtLCY Decimal
CostAmtACY Decimal

OnAddSingleLvlNonInvMaterialCost

[IntegrationEvent(False,False)]
local procedure OnAddSingleLvlNonInvMaterialCost(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; CostAmtLCY: Decimal; CostAmtACY: Decimal)

Parameters

Name Type Description
InventoryAdjmtEntryOrder Table Microsoft.Inventory.Costing."Inventory Adjmt. Entry (Order)"
CostAmtLCY Decimal
CostAmtACY Decimal

OnFindProdOrderLine

[IntegrationEvent(False,False)]
local procedure OnFindProdOrderLine(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; var Item: Record Item; var StockkeepingUnit: Record "Stockkeeping Unit"; var Found: Boolean)

Parameters

Name Type Description
InventoryAdjmtEntryOrder Table Microsoft.Inventory.Costing."Inventory Adjmt. Entry (Order)"
Item Table Microsoft.Inventory.Item.Item
StockkeepingUnit Table Microsoft.Inventory.Location."Stockkeeping Unit"
Found Boolean

See also