...
CustledgEntry."Posting Date");
END ELSE
AcceptedTolAmount := AcceptedTolAmount - AcceptedEntryTolAmount;
// Delete the following line.
AppliedCustLedgEntry."Accepted Payment Tolerance" := AcceptedTolAmountTemp;
END ELSE BEGIN
AcceptedEntryTolAmount := AcceptedTolAmount;
IF CustledgEntry."Currency Code" <> AppliedCustLedgEntry."Currency Code" THEN
AcceptedEntryTolAmount :=
...
...
CustledgEntry."Posting Date");
END ELSE
AcceptedTolAmount := AcceptedTolAmount - AcceptedEntryTolAmount;
// Add the following lines.
AppliedCustLedgEntry."Accepted Payment Tolerance" := RetAccPmtTol(CustledgEntry."Applies-to Doc. No.",
Amount + AppliedAmount,AcceptedEntryTolAmount);
// End of the lines.
END ELSE BEGIN
AcceptedEntryTolAmount := AcceptedTolAmount;
IF CustledgEntry."Currency Code" <> AppliedCustLedgEntry."Currency Code" THEN
AcceptedEntryTolAmount :=
...
...
GenJnlPostLine.ExchAmount(
AcceptedEntryTolAmount,CustledgEntry."Currency Code",AppliedCustLedgEntry."Currency Code",
CustledgEntry."Posting Date");
// Delete the following line.
AppliedCustLedgEntry."Accepted Payment Tolerance" := AcceptedTolAmountTemp;
END;
AppliedCustLedgEntry."Max. Payment Tolerance" := AppliedCustLedgEntryTemp."Max. Payment Tolerance";
AppliedCustLedgEntry."Amount to Apply" := AppliedCustLedgEntryTemp."Remaining Amount";
AppliedCustLedgEntry.MODIFY;
...
...
GenJnlPostLine.ExchAmount(
AcceptedEntryTolAmount,CustledgEntry."Currency Code",AppliedCustLedgEntry."Currency Code",
CustledgEntry."Posting Date");
// Add the following ines.
AppliedCustLedgEntry."Accepted Payment Tolerance" := RetAccPmtTol(CustledgEntry."Applies-to Doc. No.",
Amount + AppliedAmount,AcceptedEntryTolAmount);
// End of the lines.
END;
AppliedCustLedgEntry."Max. Payment Tolerance" := AppliedCustLedgEntryTemp."Max. Payment Tolerance";
AppliedCustLedgEntry."Amount to Apply" := AppliedCustLedgEntryTemp."Remaining Amount";
AppliedCustLedgEntry.MODIFY;
...