<ROOT>
 <APPS_INITIALIZE_DATA>
  <USER_NAME>ENGINATICS</USER_NAME>
  <RESPONSIBILITY_KEY>SYSTEM_ADMINISTRATOR</RESPONSIBILITY_KEY>
  <APPLICATION_SHORT_NAME>SYSADMIN</APPLICATION_SHORT_NAME>
 </APPS_INITIALIZE_DATA>
<REPORTS>
<!-- loader xml for Enginatics Blitz Report: XXSJ Report VAT Register -->
 <REPORTS_ROW>
  <GUID>A859F9C0F0B86059E053B46B635813D6</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>SELECT distinct &apos;Payables&apos;                   SOURCE
                          ,DECODE(AILA.PO_HEADER_ID, NULL, AIA.INVOICE_TYPE_LOOKUP_CODE, WER_ZX_VAT_REGISTER_RPT_PKG.GET_BUYER(AILA.PO_HEADER_ID)) INVOICE_JOURNAL_TYPE 
                          ,aia.INVOICE_NUM                       INVOICE_JOURNAL
                          ,to_char(aia.DOC_SEQUENCE_VALUE)       VOUCHER_NUM
                          ,xep.name                              legal_entity_name
                          ,aila.line_number                      LINE_NUMBER
                          ,asp.VENDOR_NAME                       SUPPLIER_CUSTOMER
                          ,asp.segment1                          SUPPLIER_CUST_NUMBER
                          ,assa.address_line1 ||&apos; &apos;|| assa.address_line2||&apos; &apos;|| assa.address_line3||&apos; &apos;|| assa.address_line4 ||&apos; &apos; || assa.CITY       ADDRESS
                          ,ft.territory_short_name               country
                          ,assa.VAT_REGISTRATION_NUM             Tax_registration
                          ,zp.REP_REGISTRATION_NUMBER  
                          ,TO_CHAR(aia.invoice_date,&apos;DD-MON-RRRR&apos;) Transaction_date
              ,TO_CHAR(aila.accounting_date,&apos;DD-MON-RRRR&apos;)    gl_date 
              ,to_char(aila.accounting_date, &apos;MON-YY&apos;) PERIOD  
                          ,WER_ZX_VAT_REGISTER_RPT_PKG.get_gcc_segment2(aia.invoice_id,aila.line_number,1,aila.tax_classification_code,zl.offset_flag)  company
                          ,WER_ZX_VAT_REGISTER_RPT_PKG.get_gcc_segment2(aia.invoice_id,aila.line_number,2,aila.tax_classification_code,zl.offset_flag)  location
                          ,WER_ZX_VAT_REGISTER_RPT_PKG.get_gcc_segment2(aia.invoice_id,aila.line_number,3,aila.tax_classification_code,zl.offset_flag)  cost_center
                          ,WER_ZX_VAT_REGISTER_RPT_PKG.get_gcc_segment2(aia.invoice_id,aila.line_number,4,aila.tax_classification_code,zl.offset_flag)  account
                          ,WER_ZX_VAT_REGISTER_RPT_PKG.get_gcc_segment2(aia.invoice_id,aila.line_number,5,aila.tax_classification_code,zl.offset_flag)  product
                          ,WER_ZX_VAT_REGISTER_RPT_PKG.get_gcc_segment2(aia.invoice_id,aila.line_number,7,aila.tax_classification_code,zl.offset_flag)  member_group
                          ,WER_ZX_VAT_REGISTER_RPT_PKG.get_gcc_segment2(aia.invoice_id,aila.line_number,8,aila.tax_classification_code,zl.offset_flag)  project
                          ,WER_ZX_VAT_REGISTER_RPT_PKG.get_gcc_segment2(aia.invoice_id,aila.line_number,6,aila.tax_classification_code,zl.offset_flag)  intercompany
                          ,WER_ZX_VAT_REGISTER_RPT_PKG.get_tax_authority(zl.tax_rate_id)  tax_authority
                          ,NVL(aila.tax_classification_code,zl.TAX_RATE_CODE)       tax_code
                          ,aia.invoice_amount                    gross_amount
                          ,decode(zl.offset_flag,&apos;Y&apos;,0,WER_ZX_VAT_REGISTER_RPT_PKG.get_ap_line_amount(aia.invoice_id,aila.line_number,NVL(aila.tax_classification_code,zl.TAX_RATE_CODE))) line_amount
                          ,decode(zl.process_for_recovery_flag, &apos;Y&apos;, zl.tax_amt, zl.rec_tax_amt ) rec_tax_amount -- added by Sachin Pathak
                          ,decode(zl.offset_flag,&apos;Y&apos;,0,WER_ZX_VAT_REGISTER_RPT_PKG.get_ap_line_amount(aia.invoice_id,aila.line_number,NVL(aila.tax_classification_code,zl.TAX_RATE_CODE)))+nvl(zl.REC_TAX_AMT,0)+nvl(zl.NREC_TAX_AMT,0)  Gross_line_amount -- added by Sachin Pathak
                          ,zl.NREC_TAX_AMT non_rec_tax_amt
                          ,aia.invoice_currency_code             trx_currency_code
                          ,decode(zl.process_for_recovery_flag, &apos;Y&apos;, zl.tax_amt, zl.rec_tax_amt ) TRX_CURR_AMOUNT -- added by Sachin Pathak
                          ,gl.currency_code                      fun_currency_code
                          ,decode(gl.currency_code,aia.invoice_currency_code, decode(zl.process_for_recovery_flag, &apos;Y&apos;, zl.tax_amt, zl.rec_tax_amt ),zl.REC_TAX_AMT_FUNCL_CURR)             FUN_CURR_AMOUNT  -- added by Sachin Pathak
                          ,zl.tax_currency_code                  vat_currency_code
                          ,decode(zl.tax_currency_code,aia.INVOICE_CURRENCY_CODE, decode(zl.process_for_recovery_flag, &apos;Y&apos;, zl.tax_amt, zl.rec_tax_amt ),gl.currency_code,zl.REC_TAX_AMT_FUNCL_CURR,zl.REC_TAX_AMT_TAX_CURR)           VAT_CURR_AMOUNT   -- added by Sachin Pathak
                          ,aila.description
                          ,WER_ZX_VAT_REGISTER_RPT_PKG.get_created_by(aia.created_by)            created_by
                          ,zl.tax_rate                                                           tax_percentage
                          ,WER_ZX_VAT_REGISTER_RPT_PKG.get_tax_rate_description(zl.tax_rate_id)  tax_rate_description
                          ,decode(zl.offset_flag,&apos;Y&apos;,0,decode(gl.currency_code,aia.invoice_currency_code,(DECODE(zl.TAX_AMT_INCLUDED_FLAG,&apos;Y&apos;, (aila.amount- NVL(decode(zl.process_for_recovery_flag, &apos;Y&apos;, zl.tax_amt, zl.rec_tax_amt ),0)),aila.amount  + NVL(zl.NREC_TAX_AMT,0))),(decode(zl.TAX_AMT_INCLUDED_FLAG,&apos;Y&apos;, (aila.base_amount - NVL(zl.REC_TAX_AMT_FUNCL_CURR,0)),(aila.base_amount + NVL(zl.NREC_TAX_AMT_FUNCL_CURR,0))))))                         NET_PUR_FUN_AMT
                          ,decode(zl.offset_flag,&apos;Y&apos;,0,(WER_ZX_VAT_REGISTER_RPT_PKG.get_ap_net_pur_vat_amt(aia.invoice_id,aila.line_number, aia.invoice_currency_code,aia.invoice_date, zl.tax_rate_id ) + zl.NREC_TAX_AMT))                  NET_PUR_VAT_AMT
                      FROM ap_invoices_all aia
                          ,ap_invoice_lines_all aila
                          ,ap_invoice_distributions_all aida
                          ,ap_suppliers asp
                          ,ap_supplier_sites_all assa
                          ,gl_ledgers gl
                          ,xle_entity_profiles xep
                          ,zx_lines zl
                          ,fnd_territories_tl ft
                          ,ZX_PARTY_TAX_PROFILE zp
                     where 1=1
                       and aia.INVOICE_ID = aila.invoice_id
                       and aida.invoice_id = aia.invoice_id
                  and aida.INVOICE_LINE_NUMBER = aila.line_number
                       and aia.org_id = zl.INTERNAL_ORGANIZATION_ID
                       and zp.party_id(+) = asp.party_id
               AND ZP.party_type_code=&apos;THIRD_PARTY&apos;
                       and aia.vendor_id = asp.vendor_id
                       and asp.vendor_id = assa.vendor_id
                       and aia.vendor_site_id = assa.vendor_site_id
                       and NVL(aila.DISCARDED_FLAG,&apos;N&apos;) &lt;&gt; &apos;Y&apos;  
                       AND NVL(aila.CANCELLED_FLAG,&apos;N&apos;) = &apos;N&apos;   
                       and aila.LINE_TYPE_LOOKUP_CODE IN (&apos;ITEM&apos;) 
                       and gl.ledger_id = aia.set_of_books_id
                       and xep.legal_entity_id = aia.legal_entity_id
                       and zl.TRX_ID = aia.invoice_id
                       and zl.TRX_LINE_NUMBER = aila.line_number
                       and zl.TRX_NUMBER = aia.invoice_num
                       AND nvl(zl.CANCEL_FLAG,&apos;N&apos;) = &apos;N&apos;   
                       and ft.TERRITORY_CODE = assa.COUNTRY
                       AND ft.LANGUAGE = &apos;US&apos;
                       and nvl(aida.posted_flag, &apos;N&apos; ) = &apos;Y&apos;
and rownum &lt; 5
and 1=1
                       &amp;lp_rep_context_entity_nameAP
                       &amp;lp_legal_entity_idAP
                       &amp;lp_gl_date_AP
                       &amp;lp_trx_date_AP
                       &amp;lp_tax_regimeAP
                       &amp;lp_taxAP
                       &amp;lp_currency_code_AP
                       &amp;lp_vat_account_AP
                       &amp;LP_REP_CONTEXT_LVL_MNG
UNION ALL
                SELECT distinct &apos;Payables&apos;                             SOURCE
                      --,aia.INVOICE_TYPE_LOOKUP_CODE          INVOICE_JOURNAL_TYPE --Commented by Sachin
                      ,DECODE(AILA.PO_HEADER_ID, NULL, AIA.INVOICE_TYPE_LOOKUP_CODE, WER_ZX_VAT_REGISTER_RPT_PKG.GET_BUYER(AILA.PO_HEADER_ID)) INVOICE_JOURNAL_TYPE -- Added by Sachin
                      ,aia.INVOICE_NUM                       INVOICE_JOURNAL
                      ,to_char(aia.DOC_SEQUENCE_VALUE)       VOUCHER_NUM
                      ,xep.name                              legal_entity_name
                      ,aila.line_number                      LINE_NUMBER
                      ,asp.VENDOR_NAME                       SUPPLIER_CUSTOMER
                      ,asp.segment1                          SUPPLIER_CUST_NUMBER
                      ,assa.address_line1 ||&apos; &apos;|| assa.address_line2||&apos; &apos;|| assa.address_line3||&apos; &apos;|| assa.address_line4 ||&apos; &apos; || assa.CITY       ADDRESS
                      ,ft.territory_short_name               country
                      ,assa.VAT_REGISTRATION_NUM             Tax_registration
                      ,zp.REP_REGISTRATION_NUMBER  -- Added by vasu on 12/06/2014
                      ,TO_CHAR(aia.invoice_date,&apos;DD-MON-RRRR&apos;) Transaction_date
                      --,TO_CHAR(aia.GL_DATE,&apos;DD-MON-RRRR&apos;)    gl_date
		      ,TO_CHAR(aila.accounting_date,&apos;DD-MON-RRRR&apos;)    gl_date -- added this by Sachin on 02/09/14
		      ,to_char(aila.accounting_date, &apos;MON-YY&apos;) PERIOD  -- added by Sachin Pathak
                      ,WER_ZX_VAT_REGISTER_RPT_PKG.get_gcc_segment(aia.invoice_id,aila.line_number,1)  company
                      ,WER_ZX_VAT_REGISTER_RPT_PKG.get_gcc_segment(aia.invoice_id,aila.line_number,2)  location
                      ,WER_ZX_VAT_REGISTER_RPT_PKG.get_gcc_segment(aia.invoice_id,aila.line_number,3)  cost_center
                      ,WER_ZX_VAT_REGISTER_RPT_PKG.get_gcc_segment(aia.invoice_id,aila.line_number,4)  account
                      ,WER_ZX_VAT_REGISTER_RPT_PKG.get_gcc_segment(aia.invoice_id,aila.line_number,5)  product
                      ,WER_ZX_VAT_REGISTER_RPT_PKG.get_gcc_segment(aia.invoice_id,aila.line_number,7)  member_group
                      ,WER_ZX_VAT_REGISTER_RPT_PKG.get_gcc_segment(aia.invoice_id,aila.line_number,8)  project
                      ,WER_ZX_VAT_REGISTER_RPT_PKG.get_gcc_segment(aia.invoice_id,aila.line_number,6)  intercompany
                      ,NULL                                  tax_authority
                      ,NULL                                  tax_code
                      ,aia.invoice_amount                    gross_amount
                      ,aila.AMOUNT                           line_amount
                      ,NULL                                  rec_tax_amount
                      ,aila.AMOUNT                           Gross_line_amount  -- added by Sachin Pathak
                      ,NULL                                  non_rec_tax_amt
                      ,aia.invoice_currency_code             trx_currency_code
                      ,NULL                                  TRX_CURR_AMOUNT
                      ,gl.currency_code                      fun_currency_code
                      ,NULL                                  FUN_CURR_AMOUNT
                      ,NULL                                  vat_currency_code
                      ,NULL                                  VAT_CURR_AMOUNT
                      ,aila.description
                      ,WER_ZX_VAT_REGISTER_RPT_PKG.get_created_by(aia.created_by)            created_by
                      ,NULL                                  tax_percentage
                      ,NULL                                  tax_rate_description
                      ,decode(gl.currency_code,aia.invoice_currency_code,aila.amount,aila.BASE_AMOUNT)    NET_PUR_FUN_AMT
                      ,NULL                                  NET_PUR_VAT_AMT
                  FROM ap_invoices_all aia
                      ,ap_invoice_lines_all aila
                      ,ap_invoice_distributions_all aida
                      ,ap_suppliers asp
                      ,ap_supplier_sites_all assa
                      ,gl_ledgers gl
                      ,xle_entity_profiles xep
                      ,fnd_territories_tl ft
                      ,ZX_PARTY_TAX_PROFILE zp  -- Added by vasu on 12/6/14
                 where 1=1
                   and aia.INVOICE_ID = aila.invoice_id
                   and aida.invoice_id = aia.invoice_id
   		   and aida.INVOICE_LINE_NUMBER = aila.line_number
                   and aia.vendor_id = asp.vendor_id
                   and asp.vendor_id = assa.vendor_id
                   and aia.vendor_site_id = assa.vendor_site_id
                   and zp.party_id(+)=asp.party_id
		   AND ZP.party_type_code=&apos;THIRD_PARTY&apos;
                   and NVL(aila.DISCARDED_FLAG,&apos;N&apos;) &lt;&gt; &apos;Y&apos;  
                   AND NVL(aila.CANCELLED_FLAG,&apos;N&apos;) = &apos;N&apos;
                   and aila.LINE_TYPE_LOOKUP_CODE = &apos;ITEM&apos;
                   and gl.ledger_id = aia.set_of_books_id
                   and xep.legal_entity_id = aia.legal_entity_id
                   AND aila.tax_classification_code IS NULL
                   and ft.TERRITORY_CODE = assa.COUNTRY
                   AND ft.LANGUAGE = &apos;US&apos;
                   AND NOT EXISTS (Select 1 from zx_lines where trx_id = aia.invoice_id and trx_line_id = aila.line_number)
                   --AND AP_INVOICES_PKG.GET_APPROVAL_STATUS(aia.INVOICE_ID,aia.INVOICE_AMOUNT, aia.PAYMENT_STATUS_FLAG, aia.INVOICE_TYPE_LOOKUP_CODE) IN ( &apos;APPROVED&apos;,&apos;AVAILABLE&apos;,&apos;FULL&apos;,&apos;PERMANENT&apos;,&apos;UNPAID&apos;)
                   and nvl(aida.posted_flag, &apos;N&apos; ) = &apos;Y&apos;
                   &amp;lp_rep_context_entity_nameAP
                   &amp;lp_legal_entity_idAP
                   &amp;lp_gl_date_AP
                   &amp;lp_trx_date_AP
                   &amp;lp_currency_code_AP
                   &amp;lp_vat_account_AP
and rownum &lt;5
        UNION ALL
                SELECT distinct &apos;Receivables&apos;                  SOURCE
                       ,rctta.name                    INVOICE_JOURNAL_TYPE
                       ,rcta.trx_number               INVOICE_JOURNAL
                       ,to_char(rcta.doc_sequence_value)       VOUCHER_NUM
                       ,xep.name                      LEGAL_ENTITY_NAME
                       ,rctla.line_number             LINE_NUMBER
                       ,hp.party_name                 SUPPLIER_CUSTOMER
                       ,hca.ACCOUNT_NUMBER            SUPPLIER_CUST_NUMBER
                       ,hp.address1 ||&apos; &apos;|| hp.address2||&apos; &apos;|| hp.address3||&apos; &apos;|| hp.address4 ||&apos; &apos; || hp.CITY ||&apos; &apos; || hp.postal_code  ADDRESS
                       ,ft.territory_short_name       country
                       ,hcsua.tax_reference           Tax_registration
					   ,hcsua.tax_reference REP_REGISTRATION_NUMBER  -- Added by vasu on 12/06/2014 -- replaced by Anand on 12/16/14
                       ,to_char(rcta.trx_date,&apos;DD-MON-RRRR&apos;) Transaction_date
                       ,to_Char(apsa.gl_date,&apos;DD-MON-RRRR&apos;) gl_date
                       ,to_char(apsa.gl_date, &apos;MON-YY&apos;) PERIOD  -- added by Sachin Pathak
                       ,gcc.segment1                  company
                       ,gcc.segment2                  location
                       ,gcc.segment3                  cost_centre
                       ,gcc.segment4                  account
                       ,gcc.segment5                  product
                       ,gcc.segment7                  member_group
                       ,gcc.segment8                  project
                       ,gcc.segment6                  intercompany
                       ,WER_ZX_VAT_REGISTER_RPT_PKG.get_tax_authority(zl.tax_id)  tax_authority
                       ,zl.tax_rate_code              tax_code
                       ,apsa.amount_due_original      gross_amount
                       ,rctla.extended_amount         line_amount
                       ,zl.tax_amt                    rec_tax_amount
                       ,rctla.extended_amount+nvl(zl.tax_amt,0) Gross_line_amount  -- added by Sachin Pathak
                       ,null                          non_rec_tax_amt
                       ,rcta.INVOICE_CURRENCY_CODE    trx_currency_code
                       ,(zl.TAX_AMT * -1)             TRX_CURR_AMOUNT
                       ,gl.currency_code              fun_currency_code
                       ,(decode(gl.currency_code,rcta.INVOICE_CURRENCY_CODE,zl.TAX_AMT,zl.TAX_AMT_FUNCL_CURR) * -1)     FUN_CURR_AMOUNT
                       ,zl.tax_currency_code          vat_currency_code
					  -- ,(decode(zl.tax_currency_code,rcta.INVOICE_CURRENCY_CODE,zl.TAX_AMT,zl.TAX_AMT_TAX_CURR) * -1)           VAT_CURR_AMOUNT
                       ,decode(rctta.type,&apos;CM&apos;,WER_ZX_VAT_REGISTER_RPT_PKG.get_tax_curr_amt(rcta.customer_trx_id),(decode(zl.tax_currency_code,rcta.INVOICE_CURRENCY_CODE,zl.TAX_AMT,zl.TAX_AMT_TAX_CURR)) * -1)           VAT_CURR_AMOUNT  -- Kamalakar 04-June-2020 modified for CM 
                       ,rctla.DESCRIPTION             description
                       ,WER_ZX_VAT_REGISTER_RPT_PKG.get_created_by(rcta.created_by)           created_by
                       ,zl.tax_rate                                                           tax_percentage
                       ,WER_ZX_VAT_REGISTER_RPT_PKG.get_tax_rate_description(zl.tax_rate_id)  tax_rate_description
                       ,(decode(gl.currency_code,rcta.invoice_currency_code,(rctla.extended_amount + NVL(zl.NREC_TAX_AMT,0)),(zl.TAXABLE_AMT_FUNCL_CURR + NVL(zl.NREC_TAX_AMT_FUNCL_CURR,0)))*-1)                         NET_PUR_FUN_AMT
                       --,(decode(gl.currency_code,rcta.invoice_currency_code,(rctla.extended_amount + NVL(zl.NREC_TAX_AMT,0)),(zl.TAXABLE_AMT_TAX_CURR + NVL(zl.NREC_TAX_AMT_TAX_CURR,0)))*-1)                             NET_PUR_VAT_AMT
		      ,(decode(gl.currency_code,zl.tax_currency_code,(rctla.extended_amount + NVL(zl.NREC_TAX_AMT,0)),(zl.TAXABLE_AMT_TAX_CURR + NVL(zl.NREC_TAX_AMT_TAX_CURR,0)))*-1)                             NET_PUR_VAT_AMT
                  FROM ra_cust_trx_types_all     rctta
                      ,ra_customer_trx_all       rcta
                      ,ra_customer_trx_lines_all rctla
                      ,ar_payment_schedules_all  apsa
                      ,gl_code_combinations      gcc
                      ,zx_lines                  zl
                      ,ra_cust_trx_line_gl_dist_all rcgdla
                      ,hz_cust_acct_sites_all hcasa
                      ,hz_cust_accounts hca
                      ,hz_parties hp
                      ,hz_cust_site_uses_all hcsua
                      ,gl_ledgers gl
                      ,xle_entity_profiles xep
                      ,fnd_territories_tl ft
		      ,ZX_PARTY_TAX_PROFILE zp  -- Added by vasu on 12/6/14
                 WHERE 1=1
                   AND rcta.customer_trx_id =  rctla.customer_trx_id
                   AND rctta.cust_trx_type_id = rcta.cust_trx_type_id
                   and apsa.customer_trx_id = rcta.customer_trx_id
                   AND hcasa.cust_account_id = rcta.BILL_TO_CUSTOMER_ID
                   and rcta.BILL_TO_SITE_USE_ID= hcsua.SITE_USE_ID
                   AND hcasa.cust_account_id = hca.cust_account_id
                   AND apsa.cust_trx_type_id = rcta.cust_trx_type_id
                   AND hca.party_id = hp.party_id
				   AND zp.party_id(+)=hp.party_id -- Added by vasu
                   AND hcsua.cust_acct_site_id = hcasa.cust_acct_site_id
                   AND hcsua.site_use_code = &apos;BILL_TO&apos;
                   AND hcsua.status =&apos;A&apos;
                   AND rctta.org_id  = rcta.org_id
                   AND rcta.org_id = hcasa.org_id
                   and rcgdla.customer_trx_line_id = rctla.customer_trx_line_id
                   and rcta.CUSTOMER_TRX_ID = rcgdla.CUSTOMER_TRX_ID
                   and zl.TRX_ID = rcta.CUSTOMER_TRX_ID
                   and zl.TRX_NUMBER = rcta.TRX_NUMBER
                   AND nvl(zl.CANCEL_FLAG,&apos;N&apos;) = &apos;N&apos;
                   and rctla.LINE_NUMBER = zl.TRX_LINE_NUMBER
                   and rctla.line_type = &apos;LINE&apos;
                   and gcc.code_combination_id =DECODE(WER_ZX_VAT_REGISTER_RPT_PKG.get_ar_tax_ccid(rctla.customer_trx_line_id,zl.tax_rate_id),0,rcgdla.code_combination_id,WER_ZX_VAT_REGISTER_RPT_PKG.get_ar_tax_ccid(rctla.customer_trx_line_id,zl.tax_rate_id))
                   and gl.ledger_id = rcta.set_of_books_id
                   and gl.ledger_id = rcgdla.set_of_books_id
                   and xep.legal_entity_id = rcta.legal_entity_id
                   and ft.TERRITORY_CODE = hp.COUNTRY
                   AND ft.LANGUAGE = &apos;US&apos;
                   AND zl.application_id = 222
                   &amp;lp_rep_context_entity_nameAR
                   &amp;lp_legal_entity_idAR
                   &amp;lp_gl_date_AR
                   &amp;lp_trx_date_AR
                   &amp;lp_tax_regimeAR
                   &amp;lp_taxAR
                   &amp;lp_currency_code_AR
                   &amp;lp_vat_account_AR
and rownum &lt; 5
        UNION ALL
                SELECT distinct &apos;Receivables&apos;                  SOURCE
                       ,rctta.name                    INVOICE_JOURNAL_TYPE
                       ,rcta.trx_number               INVOICE_JOURNAL
                       ,to_char(rcta.doc_sequence_value)       VOUCHER_NUM
                       ,xep.name                      LEGAL_ENTITY_NAME
                       ,rctla.line_number             LINE_NUMBER
                       ,hp.party_name                 SUPPLIER_CUSTOMER
                       ,hca.ACCOUNT_NUMBER            SUPPLIER_CUST_NUMBER
                       ,hp.address1 ||&apos; &apos;|| hp.address2||&apos; &apos;|| hp.address3||&apos; &apos;|| hp.address4 ||&apos; &apos; || hp.CITY ||&apos; &apos; || hp.postal_code  ADDRESS
                       ,ft.territory_short_name       country
                       ,hcsua.tax_reference           Tax_registration
					   ,hcsua.tax_reference 		  REP_REGISTRATION_NUMBER  -- Added by vasu on 12/06/2014 -- replaced by Anand on 12/16/14
                       ,to_char(rcta.trx_date,&apos;DD-MON-RRRR&apos;) Transaction_date
                       ,to_Char(apsa.gl_date,&apos;DD-MON-RRRR&apos;) gl_date
                       ,to_Char(apsa.gl_date,&apos;MON-YY&apos;) PERIOD
                       ,gcc.segment1                  company
                       ,gcc.segment2                  location
                       ,gcc.segment3                  cost_centre
                       ,gcc.segment4                  account
                       ,gcc.segment5                  product
                       ,gcc.segment7                  member_group
                       ,gcc.segment8                  project
                       ,gcc.segment6                  intercompany
                       ,NULL                          tax_authority
                       ,NULL                         tax_code
                       ,apsa.amount_due_original     gross_amount
                       ,rctla.extended_AMOUNT        line_amount
                       ,NULL                         rec_tax_amount
                       ,NVL(rctla.extended_AMOUNT,0) Gross_line_amount
                       ,null                          non_rec_tax_amt
                       ,rcta.INVOICE_CURRENCY_CODE    trx_currency_code
                       ,NULL                          TRX_CURR_AMOUNT
                       ,gl.currency_code              fun_currency_code
                       ,NULL                              FUN_CURR_AMOUNT
                       ,NULL                          vat_currency_code
                       ,NULL                                    VAT_CURR_AMOUNT
                       ,rctla.DESCRIPTION             description
                       ,WER_ZX_VAT_REGISTER_RPT_PKG.get_created_by(rcta.created_by)           created_by
                       ,NULL                                                                  tax_percentage
                       ,NULL                                                                  tax_rate_description
                       ,WER_ZX_VAT_REGISTER_RPT_PKG.get_ar_dist_amt(rctla.customer_trx_line_id) NET_PUR_FUN_AMT
                       ,NULL                                                    NET_PUR_VAT_AMT
                  FROM ra_cust_trx_types_all     rctta
                      ,ra_customer_trx_all       rcta
                      ,ra_customer_trx_lines_all rctla
                      ,ar_payment_schedules_all  apsa
                      ,gl_code_combinations      gcc
                      ,ra_cust_trx_line_gl_dist_all rcgdla
                      ,hz_cust_acct_sites_all hcasa
                      ,hz_cust_accounts hca
                      ,hz_parties hp
                      ,hz_cust_site_uses_all hcsua
                      ,gl_ledgers gl
                      ,xle_entity_profiles xep
                      ,fnd_territories_tl ft
					  ,ZX_PARTY_TAX_PROFILE zp  -- Added by vasu on 12/6/14
                 WHERE 1=1
                   AND rcta.customer_trx_id =  rctla.customer_trx_id
                   AND rctta.cust_trx_type_id = rcta.cust_trx_type_id
                   and apsa.customer_trx_id = rcta.customer_trx_id
                   AND hcasa.cust_account_id = rcta.BILL_TO_CUSTOMER_ID
                   and rcta.BILL_TO_SITE_USE_ID= hcsua.SITE_USE_ID
                   AND hcasa.cust_account_id = hca.cust_account_id
                   AND apsa.cust_trx_type_id = rcta.cust_trx_type_id
                   AND hca.party_id = hp.party_id
		   AND zp.party_id(+)=hp.party_id -- Added by vasu
                   AND hcsua.cust_acct_site_id = hcasa.cust_acct_site_id
                   AND hcsua.site_use_code = &apos;BILL_TO&apos;
                   AND hcsua.status =&apos;A&apos;
                   AND rctta.org_id  = rcta.org_id
                   AND rcta.org_id = hcasa.org_id
                   and rcgdla.customer_trx_line_id = rctla.customer_trx_line_id
                   and rcta.CUSTOMER_TRX_ID = rcgdla.CUSTOMER_TRX_ID
                   and rctla.line_type = &apos;LINE&apos;
                   and gcc.code_combination_id =rcgdla.code_combination_id
                   and gl.ledger_id = rcta.set_of_books_id
                   and gl.ledger_id = rcgdla.set_of_books_id
                   and xep.legal_entity_id = rcta.legal_entity_id
                   and ft.TERRITORY_CODE = hp.COUNTRY
                   AND ft.LANGUAGE = &apos;US&apos;
                   AND rctla.tax_classification_code is null
                   and NOT EXISTS (select 1 from apps.zx_lines
                                   where trx_id = rcta.customer_trx_id
                                   and trx_line_id = rctla.customer_trx_line_id)
                   &amp;lp_rep_context_entity_nameAR
                   &amp;lp_legal_entity_idAR
                   &amp;lp_gl_date_AR
                   &amp;lp_trx_date_AR
                   &amp;lp_currency_code_AR
                   &amp;lp_vat_account_AR
and rownum &lt; 5
            UNION ALL
                   SELECT &apos;General Ledger&apos;                             SOURCE
                           ,gjc.user_je_category_name                  INVOICE_JOURNAL_TYPE
                           ,gjh.name                                   INVOICE_JOURNAL
                           ,to_char(gjh.doc_sequence_value)            VOUCHER_NUM
                           ,flv1.meaning                               LEGAL_ENTITY_NAME
                           ,gjl.je_line_num                            LINE_NUMBER
                           ,NULL                                       SUPPLIER_CUSTOMER
                           ,NULL                                       SUPPLIER_CUST_NUMBER
                           ,NULL                                       ADDRESS
                           ,NULL                                       country
                           ,NULL                                       Tax_registration
						   ,NULL REP_REGISTRATION_NUMBER  -- Added by vasu on 12/06/2014
                           ,to_char(gjh.default_effective_date,&apos;DD-MON-RRRR&apos;) Transaction_date
                           ,TO_CHAR(gjh.default_effective_date,&apos;DD-MON-RRRR&apos;) gl_date
                           ,TO_CHAR(gjh.default_effective_date,&apos;MON-YY&apos;) PERIOD
                           ,gcc.segment1                               company
                           ,gcc.segment2                               location
                           ,gcc.segment3                               cost_centre
                           ,gcc.segment4                               account
                           ,gcc.segment5                               product
                           ,gcc.segment7                               member_group
                           ,gcc.segment8                               project
                           ,gcc.segment6                               intercompany
                           ,NULL                                       tax_authority
                           ,NULL                                       TAX_CODE
                           ,NULL                                       gross_amount
                           ,NULL                                       line_amount
                           ,NULL                                       rec_tax_amount
                           ,NULL                                       Gross_line_amount
                           ,NULL                                       non_rec_tax_amt
                           ,gjh.currency_code                          trx_currency_code
                           ,DECODE(NVL(gjl.entered_dr,0),0,(-1 * gjl.entered_cr),gjl.entered_dr)         TRX_CURR_AMOUNT
                           ,gl.CURRENCY_CODE                           fun_currency_code
                           ,DECODE(NVL(gjl.accounted_dr,0),0, (-1 * gjl.accounted_cr),gjl.accounted_dr)     FUN_CURR_AMOUNT
                           ,NULL                                       vat_currency_code
                           ,NULL                                       VAT_CURR_AMOUNT
                           ,gjl.description                            description
                           ,WER_ZX_VAT_REGISTER_RPT_PKG.get_created_by(gjh.created_by)   created_by
                           ,NULL                                       tax_percentage
                           ,NULL                                       tax_rate_description
                           ,NULL                                       NET_PUR_FUN_AMT
                           ,NULL                                       NET_PUR_VAT_AMT
                       FROM gl_je_headers gjh
                           ,gl_je_lines gjl
                           ,gl_je_categories gjc
                           ,gl_code_combinations gcc
                           ,fnd_lookup_values flv
                           ,fnd_lookup_values flv1
                           ,xle_entity_profiles xep
                           ,hr_operating_units hou
                           ,gl_ledgers gl
                      WHERE gjh.je_header_id = gjl.je_header_id
                        AND gjh.je_category= gjc.je_category_name
                        AND gjh.LEDGER_ID = gl.ledger_id
                        AND gl.ledger_id = hou.SET_OF_BOOKS_ID
                        and flv.lookup_type = &apos;WER_TAX_REGISTER_GL_ACCOUNTS&apos;
                        and flv.language = USERENV(&apos;LANG&apos;)
                        and flv.enabled_flag= &apos;Y&apos;
                        and flv.lookup_code = gcc.segment4
                        and flv1.lookup_type = &apos;PAY GROUP&apos;
                        and flv1.language = USERENV(&apos;LANG&apos;)
                        and flv1.enabled_flag= &apos;Y&apos;
                        and flv1.lookup_code = gcc.segment1
                        and gcc.code_combination_id = gjl.code_combination_id
                        and hou.set_of_books_id = gjh.ledger_id
                        AND xep.name = flv1.meaning
                        and gjh.je_source NOT IN (&apos;Receivables&apos;,&apos;Payables&apos;)
                        &amp;lp_rep_context_entity_nameGL
                        &amp;lp_legal_entity_idGL
                        &amp;lp_gl_date_GL
                        &amp;lp_trx_date_GL
                        &amp;lp_currency_code_GL
                        &amp;lp_vat_account_GL
and rownum &lt; 5
                     ORDER BY SOURCE
                          ,invoice_journal_type
                          ,invoice_journal
                          ,legal_entity_name
                          ,line_number asc</SQL_TEXT>
  <DB_PACKAGE>WER_ZX_VAT_REGISTER_RPT_PKG</DB_PACKAGE>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>XXSJ Report VAT Register</REPORT_NAME>
    <DESCRIPTION>XXSJ Report VAT Register</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>&amp;lp_currency_code_ap</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;lp_currency_code_ar</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;lp_currency_code_gl</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;lp_gl_date_ap</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;lp_gl_date_ar</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;lp_gl_date_gl</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;lp_legal_entity_idap</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;lp_legal_entity_idar</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;lp_legal_entity_idgl</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;lp_rep_context_entity_nameap</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;lp_rep_context_entity_namear</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;lp_rep_context_entity_namegl</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;lp_rep_context_lvl_mng</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;lp_tax_regimeap</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;lp_tax_regimear</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;lp_taxap</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;lp_taxar</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;lp_trx_date_ap</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;lp_trx_date_ar</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;lp_trx_date_gl</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;lp_vat_account_ap</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;lp_vat_account_ar</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;lp_vat_account_gl</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>1=1</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <ANCHOR>&amp;lp_rep_context_lvl_mng</ANCHOR>
    <SQL_TEXT>and 
(:P_REP_CONTEXT_LVL_MNG =&apos;1000&apos;
        and gl.ledger_id = :P_REP_CONTEXT_ENTITY_NAME)</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Char</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>P_REP_CONTEXT_LVL_MNG</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>2</SORT_ORDER>
    <DISPLAY_SEQUENCE>20</DISPLAY_SEQUENCE>
    <ANCHOR>&amp;lp_rep_context_entity_nameap</ANCHOR>
    <SQL_TEXT>and 1=1</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Char</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>P_REP_CONTEXT_ENTITY_NAME</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>3</SORT_ORDER>
    <DISPLAY_SEQUENCE>30</DISPLAY_SEQUENCE>
    <ANCHOR>&amp;lp_legal_entity_idap</ANCHOR>
    <SQL_TEXT>and 1=1</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Char</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>P_LEGAL_ENTITY_ID</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>4</SORT_ORDER>
    <DISPLAY_SEQUENCE>40</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>and 1=1</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Char</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>P_GL_DATE_LOW</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>5</SORT_ORDER>
    <DISPLAY_SEQUENCE>50</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>and 1=1</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Char</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>P_GL_DATE_HIGH</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>6</SORT_ORDER>
    <DISPLAY_SEQUENCE>60</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>and 1=1</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Char</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>P_TRX_DATE_LOW</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>7</SORT_ORDER>
    <DISPLAY_SEQUENCE>70</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>and 1=1</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Char</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>P_TRX_DATE_HIGH</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>8</SORT_ORDER>
    <DISPLAY_SEQUENCE>80</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>and 1=1</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Char</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>P_TAX_REGIME</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>9</SORT_ORDER>
    <DISPLAY_SEQUENCE>90</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>and 1=1</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Char</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>P_TAX</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>10</SORT_ORDER>
    <DISPLAY_SEQUENCE>100</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>and 1=1</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Char</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>P_CURRENCY_CODE_LOW</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>11</SORT_ORDER>
    <DISPLAY_SEQUENCE>110</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>and 1=1</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Char</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>P_CURRENCY_CODE_HIGH</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>12</SORT_ORDER>
    <DISPLAY_SEQUENCE>120</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>and 1=1</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Char</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>P_INPUT_VAT_ACCOUNT</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>13</SORT_ORDER>
    <DISPLAY_SEQUENCE>130</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>and 1=1</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Char</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>P_OUTPUT_VAT_ACCOUNT</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
  </PARAMETERS>
  <TEMPLATES>
  </TEMPLATES>
  <DEFAULT_TEMPLATES>
  </DEFAULT_TEMPLATES>
  <UPLOAD_COLUMNS>
  </UPLOAD_COLUMNS>
  <UPLOAD_PARAMETERS>
  </UPLOAD_PARAMETERS>
  <UPLOAD_SQLS>
  </UPLOAD_SQLS>
 </REPORTS_ROW>
</REPORTS>
</ROOT>
