Share via


Codeunit "Prod. Order Availability Mgt."

ID 99000875
Namespace: Microsoft.Manufacturing.Document

Methods

ShowItemAvailFromProdOrderLine

procedure ShowItemAvailFromProdOrderLine(var ProdOrderLine: Record "Prod. Order Line", AvailabilityType: Enum "Item Availability Type")

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
AvailabilityType Enum Microsoft.Inventory.Availability."Item Availability Type"

ShowItemAvailFromProdOrderComp

procedure ShowItemAvailFromProdOrderComp(var ProdOrderComp: Record "Prod. Order Component", AvailabilityType: Enum "Item Availability Type")

Parameters

Name Type Description
ProdOrderComp Table Microsoft.Manufacturing.Document."Prod. Order Component"
AvailabilityType Enum Microsoft.Inventory.Availability."Item Availability Type"

ShowSchedReceipt

procedure ShowSchedReceipt(var Item: Record Item)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item

ShowSchedNeed

procedure ShowSchedNeed(var Item: Record Item)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item

TransferFromProdComp

procedure TransferFromProdComp(var InventoryEventBuffer: Record "Inventory Event Buffer", ProdOrderComp: Record "Prod. Order Component")

Parameters

Name Type Description
InventoryEventBuffer Table Microsoft.Inventory.Availability."Inventory Event Buffer"
ProdOrderComp Table Microsoft.Manufacturing.Document."Prod. Order Component"

TransferFromProdOrder

procedure TransferFromProdOrder(var InventoryEventBuffer: Record "Inventory Event Buffer", ProdOrderLine: Record "Prod. Order Line")

Parameters

Name Type Description
InventoryEventBuffer Table Microsoft.Inventory.Availability."Inventory Event Buffer"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"

TransferFromForecast

Obsolete

This element will become obsolete from version 27.0. Moved back to InventoryEventBuffer

[Obsolete(Moved back to InventoryEventBuffer,27.0)]
procedure TransferFromForecast(var InventoryEventBuffer: Record "Inventory Event Buffer", ProdForecastEntry: Record "Production Forecast Entry", UnconsumedQtyBase: Decimal, ForecastOnLocation: Boolean)

Parameters

Name Type Description
InventoryEventBuffer Table Microsoft.Inventory.Availability."Inventory Event Buffer"
ProdForecastEntry Table Microsoft.Manufacturing.Forecast."Production Forecast Entry"
UnconsumedQtyBase Decimal
ForecastOnLocation Boolean

TransferFromForecast

Obsolete

This element will become obsolete from version 27.0. Moved back to InventoryEventBuffer

[Obsolete(Moved back to InventoryEventBuffer,27.0)]
procedure TransferFromForecast(var InventoryEventBuffer: Record "Inventory Event Buffer", ProdForecastEntry: Record "Production Forecast Entry", UnconsumedQtyBase: Decimal, ForecastOnLocation: Boolean, ForecastOnVariant: Boolean)

Parameters

Name Type Description
InventoryEventBuffer Table Microsoft.Inventory.Availability."Inventory Event Buffer"
ProdForecastEntry Table Microsoft.Manufacturing.Forecast."Production Forecast Entry"
UnconsumedQtyBase Decimal
ForecastOnLocation Boolean
ForecastOnVariant Boolean

ReassignRefOrderNos

procedure ReassignRefOrderNos(OrderPromisingID: Code[20])

Parameters

Name Type Description
OrderPromisingID Code[20]

Events

OnBeforeRunProductionOrderPage

[IntegrationEvent(False,False)]
local procedure OnBeforeRunProductionOrderPage(var ProductionOrder: Record "Production Order", var IsHandled: Boolean)

Parameters

Name Type Description
ProductionOrder Table Microsoft.Manufacturing.Document."Production Order"
IsHandled Boolean

OnParentIsInPlanningOnAfterReqLineSetFilters

[IntegrationEvent(False,False)]
local procedure OnParentIsInPlanningOnAfterReqLineSetFilters(var RequisitionLine: Record "Requisition Line", var ProdOrderComp: Record "Prod. Order Component")

Parameters

Name Type Description
RequisitionLine Table Microsoft.Inventory.Requisition."Requisition Line"
ProdOrderComp Table Microsoft.Manufacturing.Document."Prod. Order Component"

OnBeforeShowItemAvailFromProdOrderLine

[IntegrationEvent(False,False)]
local procedure OnBeforeShowItemAvailFromProdOrderLine(var Item: Record Item, var ProdOrderLine: Record "Prod. Order Line")

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"

OnBeforeShowItemAvailFromProdOrderComp

[IntegrationEvent(False,False)]
local procedure OnBeforeShowItemAvailFromProdOrderComp(var Item: Record Item, var ProdOrderComp: Record "Prod. Order Component")

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
ProdOrderComp Table Microsoft.Manufacturing.Document."Prod. Order Component"

OnAfterTransferProdOrderComp

[IntegrationEvent(False,False)]
local procedure OnAfterTransferProdOrderComp(var InventoryPageData: Record "Inventory Page Data", var ProductionOrder: Record "Production Order")

Parameters

Name Type Description
InventoryPageData Table Microsoft.Inventory.Availability."Inventory Page Data"
ProductionOrder Table Microsoft.Manufacturing.Document."Production Order"

OnAfterTransferFromProdComp

[IntegrationEvent(False,False)]
local procedure OnAfterTransferFromProdComp(var InventoryEventBuffer: Record "Inventory Event Buffer", ProdOrderComponent: Record "Prod. Order Component")

Parameters

Name Type Description
InventoryEventBuffer Table Microsoft.Inventory.Availability."Inventory Event Buffer"
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"

OnAfterTransferFromProdOrder

[IntegrationEvent(False,False)]
local procedure OnAfterTransferFromProdOrder(var InventoryEventBuffer: Record "Inventory Event Buffer", ProdOrderLine: Record "Prod. Order Line")

Parameters

Name Type Description
InventoryEventBuffer Table Microsoft.Inventory.Availability."Inventory Event Buffer"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"

OnAfterTransferFromForecast

Obsolete

This element will become obsolete from version 27.0. Moved back to InventoryEventBuffer

[Obsolete(Moved back to InventoryEventBuffer,27.0)]
[IntegrationEvent(False,False)]
local procedure OnAfterTransferFromForecast(var InventoryEventBuffer: Record "Inventory Event Buffer", ProdForecastEntry: Record "Production Forecast Entry")

Parameters

Name Type Description
InventoryEventBuffer Table Microsoft.Inventory.Availability."Inventory Event Buffer"
ProdForecastEntry Table Microsoft.Manufacturing.Forecast."Production Forecast Entry"

OnBeforeUpdateSchedNeedAvail

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateSchedNeedAvail(var AvailabilityAtDate: Record "Availability at Date", var Item: Record Item, var IsHandled: Boolean)

Parameters

Name Type Description
AvailabilityAtDate Table Microsoft.Inventory.Availability."Availability at Date"
Item Table Microsoft.Inventory.Item.Item
IsHandled Boolean

OnBeforeUpdateSchedRcptAvail

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateSchedRcptAvail(var AvailabilityAtDate: Record "Availability at Date", var Item: Record Item, var IsHandled: Boolean)

Parameters

Name Type Description
AvailabilityAtDate Table Microsoft.Inventory.Availability."Availability at Date"
Item Table Microsoft.Inventory.Item.Item
IsHandled Boolean

OnBeforeReassignRefOrderNos

[IntegrationEvent(False,False)]
local procedure OnBeforeReassignRefOrderNos(OrderPromisingID: Code[20], var IsHandled: Boolean)

Parameters

Name Type Description
OrderPromisingID Code[20]
IsHandled Boolean

OnReassignRefOrderNosOnAfterRequisitionLineModifyAll

[IntegrationEvent(False,False)]
local procedure OnReassignRefOrderNosOnAfterRequisitionLineModifyAll(var RequisitionLine: Record "Requisition Line")

Parameters

Name Type Description
RequisitionLine Table Microsoft.Inventory.Requisition."Requisition Line"

See also