Codeunit "Update Prod. Order Cost"

ID 99000757
Namespace: Microsoft.Manufacturing.Document

Methods

ModifySourceLineCost

procedure ModifySourceLineCost(ReservEntry: Record "Reservation Entry", UnitCost: Decimal)

Parameters

Name Type Description
ReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
UnitCost Decimal

UpdateUnitCostOnProdOrder

procedure UpdateUnitCostOnProdOrder(var ProdOrderLine: Record "Prod. Order Line", MultipleLevels: Boolean, UpdateReservation: Boolean)

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
MultipleLevels Boolean
UpdateReservation Boolean

Events

OnBeforeUpdateUnitCostOnProdOrder

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateUnitCostOnProdOrder(var ProdOrderLine: Record "Prod. Order Line", MultipleLevels: Boolean, UpdateReservation: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
MultipleLevels Boolean
UpdateReservation Boolean
IsHandled Boolean

OnBeforeUpdateTotalUnitCostOnProdOrder

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateTotalUnitCostOnProdOrder(var ProdOrderComp: Record "Prod. Order Component", var TotalUnitCost: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrderComp Table Microsoft.Manufacturing.Document."Prod. Order Component"
TotalUnitCost Decimal
IsHandled Boolean

OnUpdateUnitCostOnProdOrderOnAfterValidateUnitCost

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

Parameters

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

OnUpdateUnitCostOnProdOrderOnAfterGetProdOrderCompItem

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

Parameters

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

OnUpdateUnitCostOnProdOrderOnBeforeValidateUnitCost

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

Parameters

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

See also