R12 Wrong Calculation of AWT at Payment Time and With Amount Ranges (Doc ID 1997194.1)
R12 Wrong Calculation of AWT at Payment Time and With Amount Ranges (Doc ID 1997194.1)
R12 Wrong Calculation of AWT at Payment Time and With Amount Ranges (Doc ID 1997194.1)
In this Document
Symptoms
Changes
Cause
Solution
References
APPLIES TO:
SYMPTOMS
This amount is not correct. As there was NO other payment in 2015 it should be:
0-15220 : 1141.5
15220-30440: 1712.25
30440-49195.05= 18755.05 x 15% = 2813.25
Total = 5667.01
CHANGES
CAUSE
In AP_WITHHOLDING_PKG.Ap_Undo_Temp_Withholding, Cursor
c_temp_gross has below select statement:
CURSOR c_temp_gross (InvId IN NUMBER
,PaymNum IN NUMBER
,CheckrunName in VARCHAR2
,Calling_Module in VARCHAR2
,checkrun_id in number) IS
SELECT distinct AATD.invoice_id
, AATD.payment_num
, AATD.group_id
, AATD.tax_name
, AATD.gross_amount
, TC.tax_id tax_code_id
, aatd.checkrun_id
, AATD.accounting_date
FROM ap_awt_temp_distributions_all AATD,
ap_invoice_distributions_all aid, --bug17082216
ap_invoices_all AI,
ap_tax_codes_all TC
Distinct present in Select fetches single row for AWT Codes
with amount ranges.
SOLUTION
Please perform the action plan below in your Test/Clone instance where the issue exists and
advise on results
2. Ensure that you have taken a backup of your system before applying
the recommended patch.