Table "Inventory Adjmt. Entry (Order)"
ID 5896
Namespace: Microsoft.Inventory.Costing
Properties
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
CalcDiff
procedure CalcDiff(var InvtAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; OnlyCostShares: Boolean)
Parameters
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
RunCostAdjustment
procedure RunCostAdjustment(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)")
Parameters
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
OnAfterCalcDiff
[IntegrationEvent(False,False)]
local procedure OnAfterCalcDiff(var InvtAdjmtEntryOrderRec: Record "Inventory Adjmt. Entry (Order)"; var InvtAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; OnlyCostShares: Boolean)
Parameters
OnAfterCalcDirectCostFromCostShares
[IntegrationEvent(False,False)]
local procedure OnAfterCalcDirectCostFromCostShares(var InvtAdjmtEntryOrderRec: Record "Inventory Adjmt. Entry (Order)")
Parameters
OnAfterGetSingleLevelCosts
[IntegrationEvent(False,False)]
local procedure OnAfterGetSingleLevelCosts(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; Item: Record Item)
Parameters
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
OnAfterAddSingleLvlMaterialCost
[IntegrationEvent(False,False)]
local procedure OnAfterAddSingleLvlMaterialCost(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; var CostAmtLCY: Decimal; var CostAmtACY: Decimal)
Parameters
OnBeforeAddSingleLvlMaterialCost
[IntegrationEvent(False,False)]
local procedure OnBeforeAddSingleLvlMaterialCost(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; var CostAmtLCY: Decimal; var CostAmtACY: Decimal)
Parameters
OnAfterAddSingleLvlCapacityCost
[IntegrationEvent(False,False)]
local procedure OnAfterAddSingleLvlCapacityCost(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; var CostAmtLCY: Decimal; var CostAmtACY: Decimal)
Parameters
OnBeforeAddSingleLvlCapacityCost
[IntegrationEvent(False,False)]
local procedure OnBeforeAddSingleLvlCapacityCost(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; var CostAmtLCY: Decimal; var CostAmtACY: Decimal)
Parameters
OnAfterAddSingleLvlSubcontrdCost
[IntegrationEvent(False,False)]
local procedure OnAfterAddSingleLvlSubcontrdCost(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; var CostAmtLCY: Decimal; var CostAmtACY: Decimal)
Parameters
OnBeforeAddSingleLvlSubcontrdCost
[IntegrationEvent(False,False)]
local procedure OnBeforeAddSingleLvlSubcontrdCost(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; var CostAmtLCY: Decimal; var CostAmtACY: Decimal)
Parameters
OnAfterAddSingleLvlCapOvhdCost
[IntegrationEvent(False,False)]
local procedure OnAfterAddSingleLvlCapOvhdCost(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; var CostAmtLCY: Decimal; var CostAmtACY: Decimal)
Parameters
OnBeforeAddSingleLvlCapOvhdCost
[IntegrationEvent(False,False)]
local procedure OnBeforeAddSingleLvlCapOvhdCost(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; var CostAmtLCY: Decimal; var CostAmtACY: Decimal)
Parameters
OnAfterAddSingleLvlMfgOvhdCost
[IntegrationEvent(False,False)]
local procedure OnAfterAddSingleLvlMfgOvhdCost(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; var CostAmtLCY: Decimal; var CostAmtACY: Decimal)
Parameters
OnBeforeAddSingleLvlMfgOvhdCost
[IntegrationEvent(False,False)]
local procedure OnBeforeAddSingleLvlMfgOvhdCost(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; var CostAmtLCY: Decimal; var CostAmtACY: Decimal)
Parameters
OnCalcCurrencyFactorOnAfterSetFilters
[IntegrationEvent(False,False)]
local procedure OnCalcCurrencyFactorOnAfterSetFilters(var OutputItemLedgEntry: Record "Item Ledger Entry"; InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)")
Parameters
OnGetUnroundedCostsFromItemOnAfterGetItem
[IntegrationEvent(False,False)]
local procedure OnGetUnroundedCostsFromItemOnAfterGetItem(var Item: Record Item; var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)")
Parameters
OnGetSingleLevelCostsOnAfterCopyCostsLCY
[IntegrationEvent(False,False)]
local procedure OnGetSingleLevelCostsOnAfterCopyCostsLCY(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; Item: Record Item)
Parameters
OnGetSingleLevelCostsOnAfterCopyCostsACY
[IntegrationEvent(False,False)]
local procedure OnGetSingleLevelCostsOnAfterCopyCostsACY(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; Item: Record Item; CurrExchRate: Decimal)
Parameters
OnUpdatedFromSKUOnAfterCopyCostFromSKU
[IntegrationEvent(False,False)]
local procedure OnUpdatedFromSKUOnAfterCopyCostFromSKU(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; StockkeepingUnit: Record "Stockkeeping Unit")
Parameters
OnAfterCalcUnitCost
[IntegrationEvent(False,False)]
local procedure OnAfterCalcUnitCost(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)")
Parameters
OnAddDirectCostNonInv
[IntegrationEvent(False,False)]
local procedure OnAddDirectCostNonInv(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; CostAmtLCY: Decimal; CostAmtACY: Decimal)
Parameters
OnAddSingleLvlNonInvMaterialCost
[IntegrationEvent(False,False)]
local procedure OnAddSingleLvlNonInvMaterialCost(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; CostAmtLCY: Decimal; CostAmtACY: Decimal)
Parameters
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
See also