Skip to content

KVSKBAProductionLib#

Procedures#

OnValidateProdOrderLineItemNo(Record Prod. Order Line, Record Prod. Order Line, Record Item) :#

procedure OnValidateProdOrderLineItemNo(var ProdOrderLine: Record "Prod. Order Line"; xProdOrderLine: Record "Prod. Order Line"; Item: Record "Item"): 

OnValidateProdOrderCompItemNo(Record Prod. Order Component, Record Prod. Order Component, Record Item) :#

procedure OnValidateProdOrderCompItemNo(var ProdOrderComponent: Record "Prod. Order Component"; xProdOrderComponent: Record "Prod. Order Component"; Item: Record "Item"): 

CalculateStatusSignalsComplete(Record Production Order) :#

procedure CalculateStatusSignalsComplete(var ProductionOrder: Record "Production Order"): 

CalculateStatusSignals(Record Production Order, Boolean) :#

procedure CalculateStatusSignals(var ProductionOrder: Record "Production Order"; ShowError: Boolean): 

Events#

OnAfterCalculateStatusCapacity(Enum Production Order Status, Code[20], Integer, Option, Decimal, Option, Decimal) :#

[IntegrationEvent(false, false)]
local procedure OnAfterCalculateStatusCapacity(ProdOrderStatus: Enum "Production Order Status"; ProdOrderNo: Code[20]; ProdOrderLineNo: Integer; var SignalLaborConsum: Option; var LaborConsumInPercent: Decimal; var SignalLaborOutput: Option; var LaborOutputInPercent: Decimal): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAProductionLib", 'OnAfterCalculateStatusCapacity', '', false, false)]
local procedure DoSomethingOnAfterCalculateStatusCapacity(ProdOrderStatus: Enum "Production Order Status"; ProdOrderNo: Code[20]; ProdOrderLineNo: Integer; var SignalLaborConsum: Option; var LaborConsumInPercent: Decimal; var SignalLaborOutput: Option; var LaborOutputInPercent: Decimal)
begin
end;

OnAfterCalculateStatusMaterial(Enum Production Order Status, Code[20], Integer, Option, Decimal) :#

[IntegrationEvent(false, false)]
local procedure OnAfterCalculateStatusMaterial(ProdOrderStatus: Enum "Production Order Status"; ProdOrderNo: Code[20]; ProdOrderLineNo: Integer; var SignalMaterialConsum: Option; var MaterialConsumInPercent: Decimal): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAProductionLib", 'OnAfterCalculateStatusMaterial', '', false, false)]
local procedure DoSomethingOnAfterCalculateStatusMaterial(ProdOrderStatus: Enum "Production Order Status"; ProdOrderNo: Code[20]; ProdOrderLineNo: Integer; var SignalMaterialConsum: Option; var MaterialConsumInPercent: Decimal)
begin
end;

OnAfterCalculateStatusExternalOrders(Code[20], Integer, Option, Decimal, Option, Decimal) :#

[IntegrationEvent(false, false)]
local procedure OnAfterCalculateStatusExternalOrders(ProdOrderNo: Code[20]; ProdOrderLineNo: Integer; var SignalExternalOrders: Option; var ExternalOrdersInPercent: Decimal; var SignalExternalReply: Option; var ExternalReplyInPercentr: Decimal): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAProductionLib", 'OnAfterCalculateStatusExternalOrders', '', false, false)]
local procedure DoSomethingOnAfterCalculateStatusExternalOrders(ProdOrderNo: Code[20]; ProdOrderLineNo: Integer; var SignalExternalOrders: Option; var ExternalOrdersInPercent: Decimal; var SignalExternalReply: Option; var ExternalReplyInPercentr: Decimal)
begin
end;

OnBeforeCalculateStatusCapacity(Enum Production Order Status, Code[20], Integer, Option, Decimal, Option, Decimal, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeCalculateStatusCapacity(ProdOrderStatus: Enum "Production Order Status"; ProdOrderNo: Code[20]; ProdOrderLineNo: Integer; var SignalLaborConsum: Option; var LaborConsumInPercent: Decimal; var SignalLaborOutput: Option; var LaborOutputInPercent: Decimal; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAProductionLib", 'OnBeforeCalculateStatusCapacity', '', false, false)]
local procedure DoSomethingOnBeforeCalculateStatusCapacity(ProdOrderStatus: Enum "Production Order Status"; ProdOrderNo: Code[20]; ProdOrderLineNo: Integer; var SignalLaborConsum: Option; var LaborConsumInPercent: Decimal; var SignalLaborOutput: Option; var LaborOutputInPercent: Decimal; var IsHandled: Boolean)
begin
end;

OnBeforeCalculateStatusMaterial(Enum Production Order Status, Code[20], Integer, Option, Decimal, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeCalculateStatusMaterial(ProdOrderStatus: Enum "Production Order Status"; ProdOrderNo: Code[20]; ProdOrderLineNo: Integer; var SignalMaterialConsum: Option; var MaterialConsumInPercent: Decimal; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAProductionLib", 'OnBeforeCalculateStatusMaterial', '', false, false)]
local procedure DoSomethingOnBeforeCalculateStatusMaterial(ProdOrderStatus: Enum "Production Order Status"; ProdOrderNo: Code[20]; ProdOrderLineNo: Integer; var SignalMaterialConsum: Option; var MaterialConsumInPercent: Decimal; var IsHandled: Boolean)
begin
end;

OnBeforeCalculateStatusExternalOrders(Code[20], Integer, Option, Decimal, Option, Decimal, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeCalculateStatusExternalOrders(ProdOrderNo: Code[20]; ProdOrderLineNo: Integer; var SignalExternalOrders: Option; var ExternalOrdersInPercent: Decimal; var SignalExternalReply: Option; var ExternalReplyInPercentr: Decimal; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAProductionLib", 'OnBeforeCalculateStatusExternalOrders', '', false, false)]
local procedure DoSomethingOnBeforeCalculateStatusExternalOrders(ProdOrderNo: Code[20]; ProdOrderLineNo: Integer; var SignalExternalOrders: Option; var ExternalOrdersInPercent: Decimal; var SignalExternalReply: Option; var ExternalReplyInPercentr: Decimal; var IsHandled: Boolean)
begin
end;

OnBeforeCheckItemIsBlockedOnBeforeInsertProdOrderComponent(Record Prod. Order Component, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeCheckItemIsBlockedOnBeforeInsertProdOrderComponent(var Rec: Record "Prod. Order Component"; var Handled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAProductionLib", 'OnBeforeCheckItemIsBlockedOnBeforeInsertProdOrderComponent', '', false, false)]
local procedure DoSomethingOnBeforeCheckItemIsBlockedOnBeforeInsertProdOrderComponent(var Rec: Record "Prod. Order Component"; var Handled: Boolean)
begin
end;

OnBeforeCheckItemIsBlockedOnValidateItemNoProdOrderComponent(Record Prod. Order Component, Record Prod. Order Component, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeCheckItemIsBlockedOnValidateItemNoProdOrderComponent(var Rec: Record "Prod. Order Component"; var xRec: Record "Prod. Order Component"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAProductionLib", 'OnBeforeCheckItemIsBlockedOnValidateItemNoProdOrderComponent', '', false, false)]
local procedure DoSomethingOnBeforeCheckItemIsBlockedOnValidateItemNoProdOrderComponent(var Rec: Record "Prod. Order Component"; var xRec: Record "Prod. Order Component"; var IsHandled: Boolean)
begin
end;

OnBeforeCheckItemIsBlockedOnValidateQuantityProdOrderComponent(Record Prod. Order Component, Record Prod. Order Component, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeCheckItemIsBlockedOnValidateQuantityProdOrderComponent(var Rec: Record "Prod. Order Component"; var xRec: Record "Prod. Order Component"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAProductionLib", 'OnBeforeCheckItemIsBlockedOnValidateQuantityProdOrderComponent', '', false, false)]
local procedure DoSomethingOnBeforeCheckItemIsBlockedOnValidateQuantityProdOrderComponent(var Rec: Record "Prod. Order Component"; var xRec: Record "Prod. Order Component"; var IsHandled: Boolean)
begin
end;

OnBeforeCheckItemIsBlockedOnValidateQuantityperProdOrderComponent(Record Prod. Order Component, Record Prod. Order Component, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeCheckItemIsBlockedOnValidateQuantityperProdOrderComponent(var Rec: Record "Prod. Order Component"; var xRec: Record "Prod. Order Component"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAProductionLib", 'OnBeforeCheckItemIsBlockedOnValidateQuantityperProdOrderComponent', '', false, false)]
local procedure DoSomethingOnBeforeCheckItemIsBlockedOnValidateQuantityperProdOrderComponent(var Rec: Record "Prod. Order Component"; var xRec: Record "Prod. Order Component"; var IsHandled: Boolean)
begin
end;

OnCalculateStatusCapacityOnBeforeInsertTempProdOrdRoutingLineOnIfTypeMachineCenter(Enum Production Order Status, Code[20], Integer, Record Prod. Order Routing Line, Record Prod. Order Routing Line) :#

[IntegrationEvent(false, false)]
local procedure OnCalculateStatusCapacityOnBeforeInsertTempProdOrdRoutingLineOnIfTypeMachineCenter(ProdOrderStatus: Enum "Production Order Status"; ProdOrderNo: Code[20]; ProdOrderLineNo: Integer; ProdOrderRoutingLine: Record "Prod. Order Routing Line"; var TempProdOrdRoutingLine: Record "Prod. Order Routing Line" temporary): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAProductionLib", 'OnCalculateStatusCapacityOnBeforeInsertTempProdOrdRoutingLineOnIfTypeMachineCenter', '', false, false)]
local procedure DoSomethingOnCalculateStatusCapacityOnBeforeInsertTempProdOrdRoutingLineOnIfTypeMachineCenter(ProdOrderStatus: Enum "Production Order Status"; ProdOrderNo: Code[20]; ProdOrderLineNo: Integer; ProdOrderRoutingLine: Record "Prod. Order Routing Line"; var TempProdOrdRoutingLine: Record "Prod. Order Routing Line" temporary)
begin
end;

OnCalculateStatusCapacityOnBeforeInsertTempProdOrdRoutingLineOnIfTypeWorkCenter(Enum Production Order Status, Code[20], Integer, Record Prod. Order Routing Line, Record Prod. Order Routing Line) :#

[IntegrationEvent(false, false)]
local procedure OnCalculateStatusCapacityOnBeforeInsertTempProdOrdRoutingLineOnIfTypeWorkCenter(ProdOrderStatus: Enum "Production Order Status"; ProdOrderNo: Code[20]; ProdOrderLineNo: Integer; ProdOrderRoutingLine: Record "Prod. Order Routing Line"; var TempProdOrdRoutingLine: Record "Prod. Order Routing Line" temporary): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAProductionLib", 'OnCalculateStatusCapacityOnBeforeInsertTempProdOrdRoutingLineOnIfTypeWorkCenter', '', false, false)]
local procedure DoSomethingOnCalculateStatusCapacityOnBeforeInsertTempProdOrdRoutingLineOnIfTypeWorkCenter(ProdOrderStatus: Enum "Production Order Status"; ProdOrderNo: Code[20]; ProdOrderLineNo: Integer; ProdOrderRoutingLine: Record "Prod. Order Routing Line"; var TempProdOrdRoutingLine: Record "Prod. Order Routing Line" temporary)
begin
end;

OnCalculateStatusCapacityOnBeforeModifyTempProdOrdRoutingLineOnIfTypeMachineCenter(Enum Production Order Status, Code[20], Integer, Record Prod. Order Routing Line, Record Prod. Order Routing Line) :#

[IntegrationEvent(false, false)]
local procedure OnCalculateStatusCapacityOnBeforeModifyTempProdOrdRoutingLineOnIfTypeMachineCenter(ProdOrderStatus: Enum "Production Order Status"; ProdOrderNo: Code[20]; ProdOrderLineNo: Integer; ProdOrderRoutingLine: Record "Prod. Order Routing Line"; var TempProdOrdRoutingLine: Record "Prod. Order Routing Line" temporary): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAProductionLib", 'OnCalculateStatusCapacityOnBeforeModifyTempProdOrdRoutingLineOnIfTypeMachineCenter', '', false, false)]
local procedure DoSomethingOnCalculateStatusCapacityOnBeforeModifyTempProdOrdRoutingLineOnIfTypeMachineCenter(ProdOrderStatus: Enum "Production Order Status"; ProdOrderNo: Code[20]; ProdOrderLineNo: Integer; ProdOrderRoutingLine: Record "Prod. Order Routing Line"; var TempProdOrdRoutingLine: Record "Prod. Order Routing Line" temporary)
begin
end;

OnCalculateStatusCapacityOnBeforeModifyTempProdOrdRoutingLineOnIfTypeWorkCenter(Enum Production Order Status, Code[20], Integer, Record Prod. Order Routing Line, Record Prod. Order Routing Line) :#

[IntegrationEvent(false, false)]
local procedure OnCalculateStatusCapacityOnBeforeModifyTempProdOrdRoutingLineOnIfTypeWorkCenter(ProdOrderStatus: Enum "Production Order Status"; ProdOrderNo: Code[20]; ProdOrderLineNo: Integer; ProdOrderRoutingLine: Record "Prod. Order Routing Line"; var TempProdOrdRoutingLine: Record "Prod. Order Routing Line" temporary): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAProductionLib", 'OnCalculateStatusCapacityOnBeforeModifyTempProdOrdRoutingLineOnIfTypeWorkCenter', '', false, false)]
local procedure DoSomethingOnCalculateStatusCapacityOnBeforeModifyTempProdOrdRoutingLineOnIfTypeWorkCenter(ProdOrderStatus: Enum "Production Order Status"; ProdOrderNo: Code[20]; ProdOrderLineNo: Integer; ProdOrderRoutingLine: Record "Prod. Order Routing Line"; var TempProdOrdRoutingLine: Record "Prod. Order Routing Line" temporary)
begin
end;

OnCalculateStatusCapacityOnBeforeModifyTempProdOrdRoutingLineOnCapacityEntry(Record Prod. Order Routing Line, Record Capacity Ledger Entry) :#

[IntegrationEvent(false, false)]
local procedure OnCalculateStatusCapacityOnBeforeModifyTempProdOrdRoutingLineOnCapacityEntry(var TempProdOrdRoutingLine: Record "Prod. Order Routing Line" temporary; CapacityLedgerEntry: Record "Capacity Ledger Entry"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAProductionLib", 'OnCalculateStatusCapacityOnBeforeModifyTempProdOrdRoutingLineOnCapacityEntry', '', false, false)]
local procedure DoSomethingOnCalculateStatusCapacityOnBeforeModifyTempProdOrdRoutingLineOnCapacityEntry(var TempProdOrdRoutingLine: Record "Prod. Order Routing Line" temporary; CapacityLedgerEntry: Record "Capacity Ledger Entry")
begin
end;

OnCalculateStatusCapacityOnAfterSetReferenceParameters(Record Prod. Order Routing Line, Decimal, Decimal, Decimal, Decimal, Option, Decimal, Option, Decimal) :#

[IntegrationEvent(false, false)]
local procedure OnCalculateStatusCapacityOnAfterSetReferenceParameters(var TempProdOrdRoutingLine: Record "Prod. Order Routing Line" temporary; CaculatedLaborQty: Decimal; ConsumedLaborQty: Decimal; CalculatedOutputQty: Decimal; PostedOutputQty: Decimal; var SignalLaborConsum: Option; var LaborConsumInPercent: Decimal; var SignalLaborOutput: Option; var LaborOutputInPercent: Decimal): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAProductionLib", 'OnCalculateStatusCapacityOnAfterSetReferenceParameters', '', false, false)]
local procedure DoSomethingOnCalculateStatusCapacityOnAfterSetReferenceParameters(var TempProdOrdRoutingLine: Record "Prod. Order Routing Line" temporary; CaculatedLaborQty: Decimal; ConsumedLaborQty: Decimal; CalculatedOutputQty: Decimal; PostedOutputQty: Decimal; var SignalLaborConsum: Option; var LaborConsumInPercent: Decimal; var SignalLaborOutput: Option; var LaborOutputInPercent: Decimal)
begin
end;