...
"Return Order Line No.");
ItemShptEntryNo := PostItemJnlLine(ReturnRcptLine,DocLineNo);
InsertNewReceiptLine(ReturnRcptLine,ItemShptEntryNo,DocLineNo);
IF PostedWhseRcptLineFound THEN
WhseUndoQty.UndoPostedWhseRcptLine(PostedWhseRcptLine);
UpdateOrderLine(ReturnRcptLine);
IF PostedWhseRcptLineFound THEN
...
...
"Return Order Line No.");
ItemShptEntryNo := PostItemJnlLine(ReturnRcptLine,DocLineNo);
InsertNewReceiptLine(ReturnRcptLine,ItemShptEntryNo,DocLineNo);
// Add the following line.
ItemJnlPostLine.UpdateShpmntLedgerEntries(ReturnRcptLine);
IF PostedWhseRcptLineFound THEN
WhseUndoQty.UndoPostedWhseRcptLine(PostedWhseRcptLine);
UpdateOrderLine(ReturnRcptLine);
IF PostedWhseRcptLineFound THEN
...
...
"Return Order Line No.");
ItemShptEntryNo := PostItemJnlLine(ReturnRcptLine,DocLineNo);
InsertNewReceiptLine(ReturnRcptLine,ItemShptEntryNo,DocLineNo);
// Delete the following lines.
IF PostedWhseRcptLineFound THEN
WhseUndoQty.UndoPostedWhseRcptLine(PostedWhseRcptLine);
UpdateOrderLine(ReturnRcptLine);
// End of the lines.
IF PostedWhseRcptLineFound THEN
WhseUndoQty.UpdateSourceDocLines(PostedWhseRcptLine);
"Quantity Invoiced" := Quantity;
"Qty. Invoiced (Base)" := "Quantity (Base)";
...
...
"Return Order Line No.");
ItemShptEntryNo := PostItemJnlLine(ReturnRcptLine,DocLineNo);
InsertNewReceiptLine(ReturnRcptLine,ItemShptEntryNo,DocLineNo);
// Add the following lines.
SalesLine.GET(SalesLine."Document Type"::"Return Order",ReturnRcptLine."Return Order No.",
ReturnRcptLine."Return Order Line No.");
IF ReturnRcptLine."Item Rcpt. Entry No." > 0 THEN BEGIN
SalesLine."Appl.-from Item Entry" := ItemShptEntryNo;
SalesLine.MODIFY;
END;
IF PostedWhseRcptLineFound THEN
WhseUndoQty.UndoPostedWhseRcptLine(PostedWhseRcptLine);
UpdateOrderLine(ReturnRcptLine);
UpdateItemTrkgApplFromEntry(SalesLine);
// End of the lines.
IF PostedWhseRcptLineFound THEN
WhseUndoQty.UpdateSourceDocLines(PostedWhseRcptLine);
"Quantity Invoiced" := Quantity;
"Qty. Invoiced (Base)" := "Quantity (Base)";
...