KVSFCYMakeEDSupplyOrdersYesNo#
Procedures#
OnRun#
procedure OnRun(Rec: Record "#437dbf0e84ff417a965ded2bb9650972#Requisition Line")
TransferFromReqLineToPurchLine(Record Requisition Line, Record Purchase Line, Boolean) :#
Obsolete
This Element will be removed or changed with a future Version of the App.
[Obsolete('No longer used!', '24.4')]
procedure TransferFromReqLineToPurchLine(var reqLineVar: Record "Requisition Line"; var purchOrderLineVar: Record "Purchase Line"; edProcessPar: Boolean):
DeleteReserveEDOrderComp(Record Requisition Line) :#
Summary: Deletes reservation entries for engineering design order components when switching from production to purchase replenishment. This procedure manages the complex reservation adjustments required when changing supply methods in engineering design workflows, specifically when moving from internal production to external purchase for component fulfillment. When a requisition line represents a production order component demand that is being changed to purchase replenishment, the procedure calculates and removes the appropriate reserved quantities from the production order line that previously supplied the component. This ensures proper inventory reservation balance when transitioning between supply methods, preventing double reservations and maintaining accurate inventory tracking. The procedure is called from the requisition worksheet make order process and coordinates with reservation management to ensure clean transitions between different replenishment systems while preserving data integrity in complex engineering design and manufacturing workflows.
procedure DeleteReserveEDOrderComp(var reqLineSourceVar: Record "Requisition Line"):
Parameters:
reqLineSourceVar: Requisition line record representing the component demand being changed from production to purchase replenishment system.
UpdateEDProdOrderLine(Record Requisition Line, Record Prod. Order Line) :#
Summary: Updates engineering design production order lines when component requirements are changed from production to purchase replenishment. This procedure manages the complex quantity adjustments required in production order lines when engineering design workflows switch component supply methods from internal production to external purchase. When a requisition line represents a production order component demand being changed to purchase replenishment, the procedure calculates and reduces the production order line quantities accordingly to prevent overproduction. The procedure handles various scenarios including partial quantity reductions, complete quantity elimination, and production order line deletion when no longer needed. It performs comprehensive validation by checking for existing item and capacity ledger entries before deletion to ensure data integrity. When production lines become obsolete with zero quantities and no posted transactions, the procedure coordinates with engineering design order line management to properly clean up the production structure and update related planning workflows.
procedure UpdateEDProdOrderLine(var reqLineSourceVar: Record "Requisition Line"; var prodOrderLineToPlanVar: Record "Prod. Order Line"):
Parameters:
reqLineSourceVar: Requisition line record representing the component demand being changed from production to purchase replenishment system.prodOrderLineToPlanVar: Production order line record variable that receives the updated line for further planning processes if modifications are made.
UpdateEDProdOrderLineStructure(Record Prod. Order Line) :#
Summary: Updates and validates the multi-level production order line structure for engineering design workflows. This procedure coordinates with the engineering design order line creation system to ensure that production order structures remain consistent when changes are made to supply methods or component requirements. It clears any existing production order lines marked for planning, registers the specified production order line for structural analysis, and performs comprehensive multi-level structure validation to ensure BOM consistency and proper dependency relationships. The procedure is essential for maintaining data integrity when production order lines are modified, deleted, or restructured due to engineering design changes, supply method transitions, or component requirement adjustments. By validating the entire multi-level structure, it ensures that all dependent components, routing operations, and supply relationships remain properly coordinated throughout the engineering design and manufacturing planning process.
procedure UpdateEDProdOrderLineStructure(var prodOrderLineVar: Record "Prod. Order Line"):
Parameters:
prodOrderLineVar: Production order line record that requires structural validation and coordination within the multi-level engineering design framework.
Events#
OnBeforeCarryOutActionMsgPlanRun(Record Requisition Line, Report KVSFCYCarryOutActionMsgPlan) :#
[IntegrationEvent(false, false)]
local procedure OnBeforeCarryOutActionMsgPlanRun(var ReqLine: Record "Requisition Line"; var CarryOutActionMsgPlan: Report "KVSFCYCarryOutActionMsgPlan"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYMakeEDSupplyOrdersYesNo", 'OnBeforeCarryOutActionMsgPlanRun', '', false, false)]
local procedure DoSomethingOnBeforeCarryOutActionMsgPlanRun(var ReqLine: Record "Requisition Line"; var CarryOutActionMsgPlan: Report "KVSFCYCarryOutActionMsgPlan")
begin
end;