...
ItemJnlLine."Unit Cost" := "Unit Cost";
ItemJnlLine.Correction := IsCorrection;
END;
IF IsCorrection THEN
// Delete the following lines.
PostCorrectionItemJnLine(ItemJnlLine,ItemJnlPostLine,DATABASE::"Posted Assembly Line",ApplyToEntryNo)
ELSE BEGIN
AssemblyLineReserve.TransferAsmLineToItemJnlLine(AssemblyLine,ItemJnlLine,ItemJnlLine."Quantity (Base)",FALSE);
ItemJnlPostLine.RunWithCheck(ItemJnlLine);
AssemblyLineReserve.UpdateItemTrackingAfterPosting(AssemblyLine);
END;
PostWhseJnlLine(AssemblyHeader,ItemJnlLine,ItemJnlPostLine,WhseJnlRegisterLine);
// End of the lines.
EXIT(ItemJnlLine."Item Shpt. Entry No.");
END;
LOCAL PROCEDURE PostItemOutput@4(VAR AssemblyHeader@1001 : Record 900;PostingNoSeries@1007 : Code[10];QtyToOutput@1004 : Decimal;QtyToOutputBase@1005 : Decimal;VAR ItemJnlPostLine@1002 : Codeunit 22;VAR WhseJnlRegisterLine@1003 : Codeunit 7301;DocumentNo@1010 : Code[20];IsCorrection@1011 : Boolean;ApplyToEntryNo@1008 : Integer) : Integer;
VAR
...
...
ItemJnlLine."Unit Cost" := "Unit Cost";
ItemJnlLine.Correction := IsCorrection;
END;
IF IsCorrection THEN
// Add the following lines.
PostCorrectionItemJnLine(ItemJnlLine,AssemblyHeader,ItemJnlPostLine,DATABASE::"Posted Assembly Line",ApplyToEntryNo)
ELSE BEGIN
AssemblyLineReserve.TransferAsmLineToItemJnlLine(AssemblyLine,ItemJnlLine,ItemJnlLine."Quantity (Base)",FALSE);
ItemJnlPostLine.RunWithCheck(ItemJnlLine);
AssemblyLineReserve.UpdateItemTrackingAfterPosting(AssemblyLine);
PostWhseJnlLine(AssemblyHeader,ItemJnlLine,ItemJnlPostLine,WhseJnlRegisterLine);
END;
// End of the lines.
EXIT(ItemJnlLine."Item Shpt. Entry No.");
END;
LOCAL PROCEDURE PostItemOutput@4(VAR AssemblyHeader@1001 : Record 900;PostingNoSeries@1007 : Code[10];QtyToOutput@1004 : Decimal;QtyToOutputBase@1005 : Decimal;VAR ItemJnlPostLine@1002 : Codeunit 22;VAR WhseJnlRegisterLine@1003 : Codeunit 7301;DocumentNo@1010 : Code[20];IsCorrection@1011 : Boolean;ApplyToEntryNo@1008 : Integer) : Integer;
VAR
...