Fix tax amount for prepayment application
Dear community,
We have an old prepayment with the following distributions (21% VAT and -21% VAT Offset):
The prepayment has been applied correctly to 37 invoices but now when doing the final application to invoice 4658649, the calculated Tax amount is incorrect:
As a result, the amount paid for the invoice is 6453.15 instead of 6453.17.
Using FND Log we figured out that the unrounded_tax_amount = 1355.15 is set by these code lines of procedure ZX_TDS_APPLICABILITY_DETM_PKG.get_det_tax_lines_from_applied:
For the final application the tax amount is set equal to the remainder of Prepay's Tax line instead calculating the Tax amount the usual way using the formula in the last 3 lines.