...
GenPostingSetup.TESTFIELD("Sales Prepayments Account");
END;
GLAcc.GET(GenPostingSetup."Sales Prepayments Account");
FillInvLineBuffer(SalesHeader,SalesLine,GLAcc,PrepmtInvBuf2,TempDocDim);
// Delete the following line.
InsertInvLineBuffer(PrepmtInvBuf,PrepmtInvBuf2,SalesHeader,SalesLine,DocumentType,UpdateLines);
IF InvoiceRounding THEN
RoundAmounts(
SalesHeader,PrepmtInvBuf2,TotalPrepmtInvLineBuffer,TotalPrepmtInvLineBufferDummy);
END;
UNTIL SalesLine.NEXT = 0;
...
...
SalesLine."Gen. Bus. Posting Group",SalesLine."Gen. Prod. Posting Group");
GenPostingSetup.TESTFIELD("Sales Prepayments Account");
END;
GLAcc.GET(GenPostingSetup."Sales Prepayments Account");
FillInvLineBuffer(SalesHeader,SalesLine,GLAcc,PrepmtInvBuf2,TempDocDim);
// Add the following line.
InsertInvLineBuffer(PrepmtInvBuf,PrepmtInvBuf2,SalesHeader,SalesLine,DocumentType,UpdateLines,TRUE);
IF InvoiceRounding THEN
RoundAmounts(
SalesHeader,PrepmtInvBuf2,TotalPrepmtInvLineBuffer,TotalPrepmtInvLineBufferDummy);
END;
UNTIL SalesLine.NEXT = 0;
...
...
UNTIL SalesLine.NEXT = 0;
IF InvoiceRounding THEN
IF InsertInvoiceRounding(
SalesHeader,PrepmtInvBuf2,TotalPrepmtInvLineBuffer,SalesLine."Line No.")
THEN
// Delete the following line.
InsertInvLineBuffer(PrepmtInvBuf,PrepmtInvBuf2,SalesHeader,SalesLine,DocumentType,UpdateLines);
END;
END;
PROCEDURE BuildInvLineBuffer2@19(SalesHeader@1000 : Record 36;VAR SalesLine@1001 : Record 37;DocumentType@1005 : 'Invoice,Credit Memo,Statistic';VAR PrepmtInvBuf@1002 : Record 461;VAR TempDocDim@1004 : Record 357);
VAR
...
...
UNTIL SalesLine.NEXT = 0;
IF InvoiceRounding THEN
IF InsertInvoiceRounding(
SalesHeader,PrepmtInvBuf2,TotalPrepmtInvLineBuffer,SalesLine."Line No.")
THEN
// Add the following line.
InsertInvLineBuffer(PrepmtInvBuf,PrepmtInvBuf2,SalesHeader,SalesLine,DocumentType,UpdateLines,FALSE);
END;
END;
PROCEDURE BuildInvLineBuffer2@19(SalesHeader@1000 : Record 36;VAR SalesLine@1001 : Record 37;DocumentType@1005 : 'Invoice,Credit Memo,Statistic';VAR PrepmtInvBuf@1002 : Record 461;VAR TempDocDim@1004 : Record 357);
VAR
...