R12 Wrong Calculation of AWT at Payment Time and With Amount Ranges (Doc ID 1997194.1)

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

R12: AP: IBYBUILD - Wrong Calculation of AWT (Withholding) At Payment To

Time and with Amount Ranges (Doc ID 1997194.1) Bottom

In this Document

Symptoms
Changes
Cause
Solution
References

APPLIES TO:

Oracle Payables - Version 12.1.3 to 12.2.4 [Release 12.1 to 12.2]


Information in this document applies to any platform.

SYMPTOMS

In version 12.1.3, Payment-time AWT issues:

Invoice Number = invoice number in question


Invoice date = 29.12.2014
Invoice amount = 49195.05
Projected WHT shows:
50 at 7.5% = 3.75
26730 at 15% = 4009.5
15270 at 11.25% = 1717.88
7145.05 at 25% = 1786.26
TOTAL AWT calculated = 7517.39

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

Error in AP_WITHHOLDING_PKG pkg body (apdoawtb.pls).


 

  
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

Patch: 20445726 - WRONG CALCULATION OF AWT (ONLY) AT PAYMENT TIME


AND WITH AMOUNT RANGES.
 

Please perform the action plan below in your Test/Clone instance where the issue exists and
advise on results

1. Download and review the readme and pre-requisites for Patch 20445726

2. Ensure that you have taken a backup of your system before applying
the recommended patch.

3. Apply the patch in a test environment.

4. Confirm the following file versions:


 i.e. :

R12.1.x  ap     patch/115/sql     apdoawtb.pls     120.36.12010000.72 


R12.2.x  ap     patch/115/sql     apdoawtb.pls     120.87.12020000.18 

You can use the commands like the following:


       strings -a $XX_TOP/filename |grep '$Header'
5. Retest the issue.

6. Migrate the solution as appropriate to other environments.

Note patch 20445726 not available for R12.0.x

You might also like