Skip to content

KVSFCYCalcProdOrderSubscriber#

Procedures#

KVSFCYAssignProdOrderLineBinCodeFromProdRtngLineMachineCenter(Record Prod. Order Routing Line) :#

Summary: Assigns bin code from production routing line machine center to production order line. This procedure allows interactive selection of a machine center from those available for the work center within the routing line's time period, and updates the production order routing line accordingly. When a different machine center is selected, it updates the routing line type to Machine Center, validates the new machine center number, and recalculates bin codes for the production order line based on the updated routing information. This supports flexible machine center assignment and ensures proper bin allocation for production operations in warehouse management scenarios.

procedure KVSFCYAssignProdOrderLineBinCodeFromProdRtngLineMachineCenter(var ProdOrderRoutingLine: Record "Prod. Order Routing Line"): 

Parameters:

  • ProdOrderRoutingLine: Production order routing line record passed by reference - will be modified with updated machine center type, number, and related bin information

Events#

OnAfterSetFilterOnProdOrderComp(Record Prod. Order Component, Record Prod. Order Line) :#

Summary: This event is triggered after setting filters on production order component records

[IntegrationEvent(false, false)]
local procedure OnAfterSetFilterOnProdOrderComp(var ProdOrderComponent: Record "Prod. Order Component"; ProdOrderLine: Record "Prod. Order Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYCalcProdOrderSubscriber", 'OnAfterSetFilterOnProdOrderComp', '', false, false)]
local procedure DoSomethingOnAfterSetFilterOnProdOrderComp(var ProdOrderComponent: Record "Prod. Order Component"; ProdOrderLine: Record "Prod. Order Line")
begin
end;

Parameters:

  • ProdOrderComponent: The production order component record with applied filters
  • ProdOrderLine: The production order line context used for filtering