Skip to content

KVSFCYCreateProdOrderfromJPL#

Procedures#

CreateProdOrder(Record Job Planning Line, Enum Production Order Status, Option, Code[20], Code[10]) :#

procedure CreateProdOrder(jobPlanLinePar: Record "Job Planning Line"; prodOrderStatusPar: Enum "Production Order Status"; orderTypePar: Option; jobNoPar: Code[20]; prodOrderTypeCodePar: Code[10]): 

SetHideValidationDialog(Boolean) :#

procedure SetHideValidationDialog(NewHideValidationDialog: Boolean): 

GetProdOrder(Record Production Order) :#

procedure GetProdOrder(var prodOrderVar: Record "Production Order"): 

SetCalculationOrder() :#

procedure SetCalculationOrder(): 

Events#

OnAfterCreateProdOrder(Record Job Planning Line, Record Production Order) :#

Summary: This Event is triggered after the CreateProdOrderFuntion before the Dialog

[IntegrationEvent(false, false)]
local procedure OnAfterCreateProdOrder(var JobPlanningLine: Record "Job Planning Line"; var ProductionOrder: Record "Production Order"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYCreateProdOrderfromJPL", 'OnAfterCreateProdOrder', '', false, false)]
local procedure DoSomethingOnAfterCreateProdOrder(var JobPlanningLine: Record "Job Planning Line"; var ProductionOrder: Record "Production Order")
begin
end;

Parameters:

  • JobPlanningLine: The Job Planning Line
  • ProductionOrder: The Production Order

OnBeforeModifyProdOrderLine(Record Job Planning Line, Record Prod. Order Line) :#

Summary: This Event is triggered before modifying the Prod. Order Line

[IntegrationEvent(false, false)]
local procedure OnBeforeModifyProdOrderLine(var JobPlanningLine: Record "Job Planning Line"; var ProdOrderLine: Record "Prod. Order Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYCreateProdOrderfromJPL", 'OnBeforeModifyProdOrderLine', '', false, false)]
local procedure DoSomethingOnBeforeModifyProdOrderLine(var JobPlanningLine: Record "Job Planning Line"; var ProdOrderLine: Record "Prod. Order Line")
begin
end;

Parameters:

  • JobPlanningLine: The Job Planning Line
  • ProdOrderLine: The Prod. Order Line

OnAfterModifyProdOrderLine(Record Job Planning Line, Record Prod. Order Line) :#

Summary: This Event is triggered after modifying the Prod. Order Line

[IntegrationEvent(false, false)]
local procedure OnAfterModifyProdOrderLine(var JobPlanningLine: Record "Job Planning Line"; var ProdOrderLine: Record "Prod. Order Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYCreateProdOrderfromJPL", 'OnAfterModifyProdOrderLine', '', false, false)]
local procedure DoSomethingOnAfterModifyProdOrderLine(var JobPlanningLine: Record "Job Planning Line"; var ProdOrderLine: Record "Prod. Order Line")
begin
end;

Parameters:

  • JobPlanningLine: The Job Planning Line
  • ProdOrderLine: The Prod. Order Line