Codeunit 99000784 Mfg. Undo Purch. Rcpt. Line
Source AL, 170 lines
src/Layers/W1/BaseApp/Manufacturing/Purchases/History/MfgUndoPurchRcptLine.Codeunit.allines 13 to 28 of 170, Copyright (c) Microsoft Corporation. MIT
codeunit 99000784 "Mfg. Undo Purch. Rcpt. Line"{ [EventSubscriber(ObjectType::Codeunit, Codeunit::"Undo Purchase Receipt Line", 'OnUpdateItemJnlLineProdOrderSubcontracting', '', true, false)] local procedure OnUpdateItemJnlLineProdOrderSubcontracting(var ItemJnlLine: Record "Item Journal Line"; var PurchRcptLine: Record "Purch. Rcpt. Line"; var TempOutputItemLedgerEntry: Record "Item Ledger Entry" temporary; var OneLinePostingUndo: Boolean) begin UpdateItemJnlLineProdOrderSubcontracting(ItemJnlLine, PurchRcptLine, TempOutputItemLedgerEntry, OneLinePostingUndo); end; local procedure UpdateItemJnlLineProdOrderSubcontracting(var ItemJnlLine: Record "Item Journal Line"; var PurchRcptLine: Record "Purch. Rcpt. Line"; var TempOutputItemLedgerEntry: Record "Item Ledger Entry" temporary; var OneLinePostingUndo: Boolean) var TempCapacityLedgEntry: Record "Capacity Ledger Entry" temporary; UOMMgt: Codeunit "Unit of Measure Management"; OutputItemLedgerEntryCount: Integer; begin ItemJnlLine."Order Type" := ItemJnlLine."Order Type"::Production;