...
TRUE,TRUE);
GLEntry."Bal. Account Type" := GenJnlLine."Bal. Account Type";
GLEntry."Bal. Account No." := GenJnlLine."Bal. Account No.";
// Delete the following lines.
GLEntry."Entry No." := SaveEntryNo;
NextEntryNo := NextEntryNo - 1;
NextEntryNo2 := NextEntryNo;
// End of the lines.
SavedEntryUsed := TRUE;
InsertGLEntry(TRUE);
END;
...
...
TRUE,TRUE);
GLEntry."Bal. Account Type" := GenJnlLine."Bal. Account Type";
GLEntry."Bal. Account No." := GenJnlLine."Bal. Account No.";
// Add the folowing lines.
IF CustLedgEntryInserted OR FindBill THEN BEGIN
GLEntry."Entry No." := SaveEntryNo;
NextEntryNo := NextEntryNo - 1;
NextEntryNo2 := NextEntryNo;
END;
// End of the lines.
SavedEntryUsed := TRUE;
InsertGLEntry(TRUE);
END;
...
...
THEN BEGIN
HandlDtlAddjustment(DebitAddjustment,DebitAddjustmentAddCurr,CreditAddjustment,CreditAddjustmentAddCurr,
TotalAmountLCY,TotalAmountAddCurr,CustPostingGr."Receivables Account");
// Delete the following lines.
GLEntry."Entry No." := SaveEntryNo;
NextEntryNo := NextEntryNo - 1;
NextEntryNo2 := NextEntryNo;
// End of the lines.
SavedEntryUsed := TRUE;
InsertGLEntry(TRUE);
END;
...
...
THEN BEGIN
HandlDtlAddjustment(DebitAddjustment,DebitAddjustmentAddCurr,CreditAddjustment,CreditAddjustmentAddCurr,
TotalAmountLCY,TotalAmountAddCurr,CustPostingGr."Receivables Account");
// Add the following lines.
IF CustLedgEntryInserted OR FindBill THEN BEGIN
GLEntry."Entry No." := SaveEntryNo;
NextEntryNo := NextEntryNo - 1;
NextEntryNo2 := NextEntryNo;
END;
// End of the lines.
SavedEntryUsed := TRUE;
InsertGLEntry(TRUE);
END;
...