...
NewCVLedgEntryBuf."Currency Code",NewCVLedgEntryBuf."Posting Date");
TempOldCustLedgEntry."Remaining Pmt. Disc. Possible" :=
ExchAmount(
TempOldCustLedgEntry."Remaining Pmt. Disc. Possible",TempOldCustLedgEntry."Currency Code",
NewCVLedgEntryBuf."Currency Code",NewCVLedgEntryBuf."Posting Date");
// Delete the following lines.
TempOldCustLedgEntry."Accepted Payment Tolerance" :=
ExchAmount(
TempOldCustLedgEntry."Accepted Payment Tolerance",TempOldCustLedgEntry."Currency Code",
NewCVLedgEntryBuf."Currency Code",NewCVLedgEntryBuf."Posting Date");
// End of the lines.
TempOldCustLedgEntry."Amount to Apply" :=
ExchAmount(
TempOldCustLedgEntry."Amount to Apply",TempOldCustLedgEntry."Currency Code",
NewCVLedgEntryBuf."Currency Code",NewCVLedgEntryBuf."Posting Date");
...
...
NewCVLedgEntryBuf."Currency Code",NewCVLedgEntryBuf."Posting Date");
TempOldCustLedgEntry."Remaining Pmt. Disc. Possible" :=
ExchAmount(
TempOldCustLedgEntry."Remaining Pmt. Disc. Possible",TempOldCustLedgEntry."Currency Code",
NewCVLedgEntryBuf."Currency Code",NewCVLedgEntryBuf."Posting Date");
TempOldCustLedgEntry."Amount to Apply" :=
ExchAmount(
TempOldCustLedgEntry."Amount to Apply",TempOldCustLedgEntry."Currency Code",
NewCVLedgEntryBuf."Currency Code",NewCVLedgEntryBuf."Posting Date");
...
...
NewCVLedgEntryBuf."Currency Code",NewCVLedgEntryBuf."Posting Date");
OldCVLedgEntryBuf2."Remaining Pmt. Disc. Possible" :=
ExchAmount(
OldCVLedgEntryBuf2."Remaining Pmt. Disc. Possible",OldCVLedgEntryBuf2."Currency Code",
NewCVLedgEntryBuf."Currency Code",NewCVLedgEntryBuf."Posting Date");
// Delete the following lines.
OldCVLedgEntryBuf2."Accepted Payment Tolerance" :=
ExchAmount(
OldCVLedgEntryBuf2."Accepted Payment Tolerance",OldCVLedgEntryBuf2."Currency Code",
NewCVLedgEntryBuf."Currency Code",NewCVLedgEntryBuf."Posting Date");
// End of the lines.
OldCVLedgEntryBuf2."Amount to Apply" :=
ExchAmount(
OldCVLedgEntryBuf2."Amount to Apply",OldCVLedgEntryBuf2."Currency Code",
NewCVLedgEntryBuf."Currency Code",NewCVLedgEntryBuf."Posting Date");
...
...
NewCVLedgEntryBuf."Currency Code",NewCVLedgEntryBuf."Posting Date");
OldCVLedgEntryBuf2."Remaining Pmt. Disc. Possible" :=
ExchAmount(
OldCVLedgEntryBuf2."Remaining Pmt. Disc. Possible",OldCVLedgEntryBuf2."Currency Code",
NewCVLedgEntryBuf."Currency Code",NewCVLedgEntryBuf."Posting Date");
OldCVLedgEntryBuf2."Amount to Apply" :=
ExchAmount(
OldCVLedgEntryBuf2."Amount to Apply",OldCVLedgEntryBuf2."Currency Code",
NewCVLedgEntryBuf."Currency Code",NewCVLedgEntryBuf."Posting Date");
...