...
// Post the application
CustLedgEntry.CALCFIELDS(
Amount,"Amount (LCY)","Remaining Amount","Remaining Amt. (LCY)",
"Original Amount","Original Amt. (LCY)");
TransferCustLedgEntry(CVLedgEntryBuf,CustLedgEntry,TRUE);
ApplyCustLedgEntry(
// Delete the following line.
CVLedgEntryBuf,DtldCVLedgEntryBuf,GenJnlLine,GLSetup."Appln. Rounding Precision");
TransferCustLedgEntry(CVLedgEntryBuf,CustLedgEntry,FALSE);
CustLedgEntry.MODIFY;
...
...
// Post the application
CustLedgEntry.CALCFIELDS(
Amount,"Amount (LCY)","Remaining Amount","Remaining Amt. (LCY)",
"Original Amount","Original Amt. (LCY)");
TransferCustLedgEntry(CVLedgEntryBuf,CustLedgEntry,TRUE);
ApplyCustLedgEntry(
// Add the following line.
CVLedgEntryBuf,DtldCVLedgEntryBuf,GenJnlLine);
TransferCustLedgEntry(CVLedgEntryBuf,CustLedgEntry,FALSE);
CustLedgEntry.MODIFY;
...