<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: AP TDS Details Report -->
 <REPORTS_ROW>
  <GUID>C3D5E7F9B1D3F5A71921B3D5E7F91B3D</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>select
xatdt.crs_number,
xatdt.invoice_id,
xatdt.invoice_num,
xatdt.invoice_description,
xatdt.invoice_date,
xatdt.vendor_code,
xatdt.vendor_name,
xatdt.vendor_site_code,
xatdt.vendor_site_id,
xatdt.address_line1,
xatdt.address_line2,
xatdt.address_line3,
xatdt.city,
xatdt.state,
xatdt.zip,
xatdt.vendor_pan_no,
xatdt.invoice_amount,
xatdt.gl_date,
xatdt.tax_id,
xatdt.tax_name,
xatdt.tax_rate,
xatdt.basic_tax_rate,
xatdt.surcharge_rate,
xatdt.cess_rate,
xatdt.section_code,
xatdt.basic_tax_amount,
xatdt.surcharge_amount,
xatdt.cess_amount,
xatdt.tax_amount,
xatdt.gl_ac_number,
xatdt.gl_ac_desc,
xatdt.tax_invoice_date,
xatdt.tax_invoice_due_date,
xatdt.tax_authority_vendor_code,
xatdt.tax_authority_name,
xatdt.tax_authority_site_name,
xatdt.tax_vendorsite_id,
xatdt.payment_date,
xatdt.check_id,
xatdt.check_deposit_date,
xatdt.deposit_bank_name,
xatdt.challan_number,
xatdt.payquick_check_number,
xatdt.tds_account,
xatdt.tds_acct_desc,
xatdt.paid,
xatdt.tax_invoice_gl_date,
decode(aia.attribute_category,&apos;Petty Cash&apos;,aia.attribute2,&apos;HR Details&apos;,aia.attribute7,&apos;Courier Details&apos;,aia.attribute7,&apos;India VAT&apos;,aia.attribute7,aia.attribute5) additional_detail,
aia.supplier_tax_invoice_number,
aia.attribute1,
aia.global_attribute15,
xatdt.paygroup,
xatdt.tax_cat_name,
sum(xatdt.pv_number) pv_number,
sum(xatdt.tax_cat_id) tax_cat_id
from
hdfc.xxhdfc_ap_tds_details_tbl xatdt,
ap_invoices_all aia
where
xatdt.invoice_id=aia.invoice_id and
:p_tax_inv_due_date=:p_tax_inv_due_date
group by
xatdt.crs_number,
xatdt.invoice_id,
xatdt.invoice_num,
xatdt.invoice_description,
xatdt.invoice_date,
xatdt.vendor_code,
xatdt.vendor_name,
xatdt.vendor_site_code,
xatdt.vendor_site_id,
xatdt.address_line1,
xatdt.address_line2,
xatdt.address_line3,
xatdt.city,
xatdt.state,
xatdt.zip,
xatdt.vendor_pan_no,
xatdt.invoice_amount,
xatdt.gl_date,
xatdt.tax_id,
xatdt.tax_name,
xatdt.tax_rate,
xatdt.basic_tax_rate,
xatdt.surcharge_rate,
xatdt.cess_rate,
xatdt.section_code,
xatdt.basic_tax_amount,
xatdt.surcharge_amount,
xatdt.cess_amount,
xatdt.tax_amount,
xatdt.gl_ac_number,
xatdt.gl_ac_desc,
xatdt.tax_invoice_date,
xatdt.tax_invoice_due_date,
xatdt.tax_authority_vendor_code,
xatdt.tax_authority_name,
xatdt.tax_authority_site_name,
xatdt.tax_vendorsite_id,
xatdt.payment_date,
xatdt.check_id,
xatdt.check_deposit_date,
xatdt.deposit_bank_name,
xatdt.challan_number,
xatdt.payquick_check_number,
xatdt.tds_account,
xatdt.tds_acct_desc,
xatdt.paid,
xatdt.tax_invoice_gl_date,
decode(aia.attribute_category,&apos;Petty Cash&apos;,aia.attribute2,&apos;HR Details&apos;,aia.attribute7,&apos;Courier Details&apos;,aia.attribute7,&apos;India VAT&apos;,aia.attribute7,aia.attribute5),
aia.supplier_tax_invoice_number,
aia.attribute1,
aia.global_attribute15,
xatdt.paygroup,
xatdt.tax_cat_name</SQL_TEXT>
  <VERSION_COMMENTS>Initial version - migrated from the HDFC Form 17 (India TDS) Oracle Reports / Discoverer worksheet on HDFC.XXHDFC_AP_TDS_DETAILS_TBL. The TDS detail table is populated for the entered Tax Invoice Due Date by the HDFC_TDS_DETAILS concurrent program, which is submitted and waited for by the report&apos;s DB package before-report trigger (XXHDFC_TDS_REPORT_PKG.beforereport) before the main SQL runs.</VERSION_COMMENTS>
  <DB_PACKAGE>XXHDFC_TDS_REPORT_PKG</DB_PACKAGE>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>AP TDS Details Report</REPORT_NAME>
    <DESCRIPTION>TDS (Tax Deducted at Source) invoice details for India Form 17, joining the HDFC TDS detail table to AP Invoices for the supplier attribute / supplier tax invoice number columns.

The TDS detail table HDFC.XXHDFC_AP_TDS_DETAILS_TBL is not queried directly from your transactional tables. It is first populated for the entered Tax Invoice Due Date by the HDFC_TDS_DETAILS concurrent program (XXHDFC TDS Details Report). This report runs that program automatically through its DB package before-report trigger (XXHDFC_TDS_REPORT_PKG.beforereport), waits for it to complete, and then returns the populated rows - so you do not need to run the concurrent program separately.

Enter the Tax Invoice Due Date to report TDS invoices due on that date. PV Number and Tax Category Id are summed for each unique combination of all other columns.</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>Custom Reports HDFC</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>:p_tax_inv_due_date</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <ANCHOR>:p_tax_inv_due_date</ANCHOR>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Tax Invoice Due Date</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>
