<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: JA India TDS Register -->
 <REPORTS_ROW>
  <GUID>2B15062FE4C34E999D4469F79F20B4D6</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>select
x.*
from
(
select
hou.name operating_unit,
to_char(add_months(nvl(aia_tds.gl_date,aia.gl_date),-3),&apos;YYYY&apos;)||&apos;-&apos;||to_char(add_months(nvl(aia_tds.gl_date,aia.gl_date),9),&apos;YY&apos;) financial_year,
&apos;Q&apos;||(trunc(mod(to_number(to_char(nvl(aia_tds.gl_date,aia.gl_date),&apos;MM&apos;))+8,12)/3)+1) quarter,
aps.vendor_name supplier,
aps.segment1 supplier_number,
assa.vendor_site_code supplier_site,
nvl(pan_site.pan,pan_hdr.pan) &quot;Supplier PAN&quot;,
nvl2(pan_site.pan,pan_site.effective_from,pan_hdr.effective_from) &quot;PAN Effective From&quot;,
nvl2(pan_site.pan,pan_site.creation_date,pan_hdr.creation_date) &quot;PAN Entered On&quot;,
nvl2(pan_site.pan,pan_site.vendor_type,pan_hdr.vendor_type) &quot;TDS Vendor Type&quot;,
xxen_util.meaning(jattt.tds_section_code,&apos;JAI_TDS_SECTION&apos;,7000) section,
jtr.tax_rate_name tax,
initcap(jattt.tds_event) &quot;TDS Event&quot;,
aia.invoice_num invoice_number,
aia.invoice_date,
aia.gl_date &quot;Invoice GL Date&quot;,
aia.invoice_currency_code invoice_currency,
aia.invoice_amount,
decode(sign(jattt.invoice_to_vendor_amt),1,-1,1)*jattt.taxable_amount taxable_amount,
jattt.tax_rate &quot;TDS Rate&quot;,
decode(sign(jattt.invoice_to_vendor_amt),1,-1,1)*jattt.tax_amount &quot;TDS Amount&quot;,
aia_tds.invoice_num &quot;TDS Invoice Number&quot;,
aia_tds.invoice_date &quot;TDS Invoice Date&quot;,
aia_tds.gl_date &quot;TDS Invoice GL Date&quot;,
aia_tds.invoice_amount &quot;TDS Invoice Amount&quot;,
xxen_util.ap_invoice_status(aia_tds.invoice_id,aia_tds.invoice_amount,aia_tds.payment_status_flag,aia_tds.invoice_type_lookup_code,aia_tds.validation_request_id) &quot;TDS Invoice Status&quot;,
aps_auth.vendor_name &quot;TDS Authority&quot;,
aia_tds.amount_paid &quot;TDS Paid Amount&quot;,
pay.payment_date &quot;TDS Payment Date&quot;,
pay.payment_number &quot;TDS Payment Number&quot;,
pay.challan_number,
pay.challan_date,
pay.bsr_code &quot;BSR Code&quot;,
jattt.invoice_to_vendor_num &quot;Supplier TDS Document&quot;,
jattt.invoice_to_vendor_amt &quot;Supplier TDS Document Amount&quot;,
(select max(jatip.certificate_num) from jai_ap_tds_inv_payments jatip where jattt.invoice_to_tds_authority_id=jatip.invoice_id) certificate_number,
xxen_util.yes(jattt.tds_rollbacked) rolled_back
from
jai_ap_tds_thhold_trxs jattt,
ap_invoices_all aia,
hr_operating_units hou,
ap_suppliers aps,
ap_supplier_sites_all assa,
jai_tax_rates jtr,
ap_invoices_all aia_tds,
ap_suppliers aps_auth,
(
select
aipa.invoice_id,
max(aca.check_date) payment_date,
max(aca.check_number) keep (dense_rank last order by aca.check_date, aca.check_id) payment_number,
max(jatp.challan_no) keep (dense_rank last order by aca.check_date, aca.check_id) challan_number,
max(jatp.check_deposit_date) keep (dense_rank last order by aca.check_date, aca.check_id) challan_date,
max(jatp.bsr_code) keep (dense_rank last order by aca.check_date, aca.check_id) bsr_code
from
ap_invoice_payments_all aipa,
ap_checks_all aca,
jai_ap_tds_payments jatp
where
aipa.invoice_id in (select jattt2.invoice_to_tds_authority_id from jai_ap_tds_thhold_trxs jattt2) and
aipa.check_id=aca.check_id and
aca.status_lookup_code not in (&apos;VOIDED&apos;,&apos;STOP INITIATED&apos;) and
aca.check_id=jatp.check_id(+)
group by
aipa.invoice_id
) pay,
(
select
jpr.party_site_id,
max(decode(jprl.registration_type_code,&apos;PAN&apos;,jprl.registration_number,jprl.secondary_registration_number)) keep (dense_rank last order by jprl.effective_from) pan,
max(jprl.effective_from) effective_from,
max(jprl.creation_date) keep (dense_rank last order by jprl.effective_from) creation_date,
max(jra.reporting_code) vendor_type
from
jai_party_regs jpr,
jai_party_reg_lines jprl,
jai_regimes jr,
jai_reporting_associations jra
where
jpr.party_type_code=&apos;THIRD_PARTY_SITE&apos; and
jpr.supplier_flag=&apos;Y&apos; and
jpr.party_reg_id=jprl.party_reg_id and
jprl.regime_id=jr.regime_id and
jr.regime_type=&apos;W&apos; and
&apos;PAN&apos; in (jprl.registration_type_code,jprl.sec_registration_type_code) and
(jprl.effective_to is null or jprl.effective_to&gt;=sysdate) and
jprl.party_reg_id=jra.entity_id(+) and
jprl.regime_id=jra.regime_id(+) and
jra.entity_code(+)=&apos;THIRD_PARTY&apos; and
jra.reporting_type_name(+)=&apos;Vendor Type&apos;
group by
jpr.party_site_id
) pan_site,
(
select
jpr.party_id,
max(decode(jprl.registration_type_code,&apos;PAN&apos;,jprl.registration_number,jprl.secondary_registration_number)) keep (dense_rank last order by jprl.effective_from) pan,
max(jprl.effective_from) effective_from,
max(jprl.creation_date) keep (dense_rank last order by jprl.effective_from) creation_date,
max(jra.reporting_code) vendor_type
from
jai_party_regs jpr,
jai_party_reg_lines jprl,
jai_regimes jr,
jai_reporting_associations jra
where
jpr.party_type_code=&apos;THIRD_PARTY&apos; and
jpr.supplier_flag=&apos;Y&apos; and
jpr.party_reg_id=jprl.party_reg_id and
jprl.regime_id=jr.regime_id and
jr.regime_type=&apos;W&apos; and
&apos;PAN&apos; in (jprl.registration_type_code,jprl.sec_registration_type_code) and
(jprl.effective_to is null or jprl.effective_to&gt;=sysdate) and
jprl.party_reg_id=jra.entity_id(+) and
jprl.regime_id=jra.regime_id(+) and
jra.entity_code(+)=&apos;THIRD_PARTY&apos; and
jra.reporting_type_name(+)=&apos;Vendor Type&apos;
group by
jpr.party_id
) pan_hdr
where
1=1 and
jattt.invoice_id=aia.invoice_id and
aia.org_id=hou.organization_id and
jattt.vendor_id=aps.vendor_id and
jattt.vendor_site_id=assa.vendor_site_id and
jattt.tax_id=jtr.tax_rate_id(+) and
jattt.invoice_to_tds_authority_id=aia_tds.invoice_id(+) and
jattt.tds_authority_vendor_id=aps_auth.vendor_id(+) and
jattt.invoice_to_tds_authority_id=pay.invoice_id(+) and
jattt.vendor_site_id=pan_site.party_site_id(+) and
jattt.vendor_id=pan_hdr.party_id(+) and
hou.organization_id in (select xroa.id from xxen_report_org_access xroa where xroa.access_type=&apos;OU&apos;)
) x
order by
x.operating_unit,
x.supplier,
x.supplier_site,
x.&quot;Invoice GL Date&quot;,
x.invoice_number,
x.section,
x.&quot;TDS Invoice Number&quot;</SQL_TEXT>
  <VERSION_COMMENTS>New report of India supplier TDS: deductions per invoice and section, the TDS invoice to the authority with its payment and challan, and the certificate number.</VERSION_COMMENTS>
  <XDO_APPLICATION_SHORT_NAME>JA</XDO_APPLICATION_SHORT_NAME>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>JA India TDS Register</REPORT_NAME>
    <DESCRIPTION>One row per invoice, TDS section and TDS event of Oracle Financials for India: the TDS deducted (taxable amount, rate, amount), the TDS invoice raised to the tax authority with its payment and challan, the matching document to the supplier and the Form 16A certificate number.

Financial Year (April to March) and Quarter follow the GL date of the TDS invoice, or of the invoice where there is none. The GL Date parameters select by the invoice&apos;s GL date.

Supplier PAN, PAN Effective From and TDS Vendor Type come from the supplier&apos;s withholding tax registration, of the site where it has one, else of the supplier. PAN Entered On is the date the registration line was created: registrations migrated from the previous India Localization carry the migration date as their effective from date.

The TDS payment and challan columns stay blank until the TDS invoice is paid to the authority and its challan is entered in the TDS payment details. Rolled Back marks a deduction that Oracle reversed.

Taxable Amount and TDS Amount are negative on the rows where Oracle returns TDS to the supplier (prepayment application, threshold rollback, invoice cancellation), so their sum over all rows is the TDS deducted.</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>Enginatics</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>R12 only</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>1=1</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>hou.name=:operating_unit</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>HR Operating Unit</LOV_NAME>
    <LOV_GUID>8E2FF36EDEB979D2E0530100007F1FF2</LOV_GUID>
    <LOV_QUERY_DSP>select
hou.name value,
null description
from
hr_operating_units hou
where
sysdate between hou.date_from and nvl(hou.date_to,sysdate) and
(:$flex$.ledger is null or hou.set_of_books_id in (select gl.ledger_id from gl_ledgers gl where xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos;)) and
hou.organization_id in (select xroa.id from xxen_report_org_access xroa where xroa.access_type=&apos;OU&apos;)
order by
hou.name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Operating Unit</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>2</SORT_ORDER>
    <DISPLAY_SEQUENCE>20</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>aps.vendor_name=:supplier_name</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>AP Supplier</LOV_NAME>
    <LOV_GUID>B9847D20A0E4742FE0538931640A6379</LOV_GUID>
    <LOV_QUERY_DSP>select
aps.vendor_name value,
aps.segment1 description
from
ap_suppliers aps
where
(:$flex$.operating_unit is null or aps.vendor_id in (select assa.vendor_id from hr_all_organization_units_vl haouv, ap_supplier_sites_all assa where xxen_util.contains(:$flex$.operating_unit,haouv.name)=&apos;Y&apos; and haouv.organization_id=assa.org_id)) and
(:$flex$.organization_code is null or aps.vendor_id in (select assa.vendor_id from org_organization_definitions ood, ap_supplier_sites_all assa where xxen_util.contains(:$flex$.organization_code,ood.organization_code)=&apos;Y&apos; and ood.operating_unit=assa.org_id))
order by
aps.vendor_name,
aps.vendor_id</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Supplier</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>3</SORT_ORDER>
    <DISPLAY_SEQUENCE>30</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>jattt.tds_section_code=:section</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select
flvv.lookup_code id,
flvv.meaning value,
flvv.description
from
fnd_lookup_values_vl flvv
where
flvv.lookup_type=&apos;JAI_TDS_SECTION&apos; and
flvv.view_application_id=7000 and
flvv.security_group_id=0 and
flvv.enabled_flag=&apos;Y&apos;
order by
flvv.meaning</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Section</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>aia.gl_date&gt;=:gl_date_from</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL Date From</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>aia.gl_date&lt;:gl_date_to+1</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>last_day(:$flex$.gl_date_from)</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL Date To</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>
