<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: AR Late Charges -->
 <REPORTS_ROW>
  <GUID>82288223EE9A3869E053B46B63588994</GUID>
  <SQL_TEXT>SELECT intb.org_id org_id,
  intb.interest_batch_id interest_batch_id,
  intb.batch_name batch_name,
  ou.name ou_name,
  -- start for bug 26500596 by sunagesh
  --intb.calculate_interest_to_date charge_as_of_date,
  FND_DATE.DATE_TO_CHARDATE(intb.calculate_interest_to_date) charge_as_of_date,
  -- end for bug 26500596 by sunagesh
  pty.party_id party_id,
  pty.party_name party_name,
  ac.account_number account_number,
  inth.customer_id account_id,
  inth.customer_site_use_id bill_to_id,
  loc.address1 address1,
  loc.address2 address2,
  decode(acs.cust_acct_site_id,   NULL,   NULL,   arh_addr_pkg.format_last_address_line(loc.address_style,   loc.address3,   loc.address4,   loc.city,   loc.county, 
  loc.state,   loc.province,   terr.territory_short_name,   loc.postal_code)) address3,
  inth.currency_code currency_code,
  inth.interest_header_id interest_header_id,
  inth.header_type header_type,
  trx.trx_number invoice_number,
  FND_DATE.DATE_TO_CHARDATE(trx.trx_date) invoice_date,
  -inth.interest_header_id  interest_line_id
FROM ar_interest_batches intb,
  ar_interest_headers inth,
  hz_parties pty,
  hz_cust_accounts ac,
  hz_cust_acct_sites acs,
  hz_cust_site_uses_all su,
  hz_locations loc,
  hz_party_sites ps,
  fnd_territories_vl terr,
  ra_customer_trx trx,
  hr_all_organization_units_tl ou
WHERE intb.interest_batch_id = inth.interest_batch_id
 AND pty.party_id = ac.party_id
 AND inth.customer_id = ac.cust_account_id
 AND inth.customer_site_use_id = su.site_use_id
 AND su.cust_acct_site_id = acs.cust_acct_site_id
 AND acs.party_site_id = ps.party_site_id
 AND ps.location_id = loc.location_id
 AND loc.country = terr.territory_code(+)
 AND ou.organization_id = intb.org_id
 AND ou.LANGUAGE = userenv(&apos;LANG&apos;)
 AND inth.display_flag = &apos;Y&apos;
 ANd intb.batch_status in ( &apos;F&apos;,&apos;D&apos;)
 ANd intb.transferred_status = decode(intb.batch_status ,&apos;F&apos;,&apos;S&apos;,intb.transferred_status)
 ANd trx.interest_header_id(+) = inth.interest_header_id
 AND inth.interest_header_id = :int_header_id
 AND inth.header_type IN ( &apos;INV&apos;,&apos;DM&apos;)
 &amp;P_QUERY_WHERE 
 UNION ALL
 SELECT intb.org_id org_id,
  intb.interest_batch_id interest_batch_id,
  intb.batch_name batch_name,
  ou.name ou_name,
  -- start for bug 26500596 by sunagesh
  --intb.calculate_interest_to_date charge_as_of_date,
  FND_DATE.DATE_TO_CHARDATE(intb.calculate_interest_to_date) charge_as_of_date,
  -- end for bug 26500596 by sunagesh
  pty.party_id party_id,
  pty.party_name party_name,
  ac.account_number account_number,
  inth.customer_id account_id,
  inth.customer_site_use_id bill_to_id,
  loc.address1 address1,
  loc.address2 address2,
  decode(acs.cust_acct_site_id,   NULL,   NULL,   arh_addr_pkg.format_last_address_line(loc.address_style,   loc.address3,   loc.address4,   loc.city,   loc.county,   loc.state,
  loc.province,   terr.territory_short_name,   loc.postal_code)) address3,
  inth.currency_code currency_code,
  inth.interest_header_id interest_header_id,
  inth.header_type header_type,
  adj.adjustment_number invoice_number,
  FND_DATE.DATE_TO_CHARDATE(adj.apply_date) invoice_date,
  intl.interest_line_id  interest_line_id
   FROM ar_interest_batches intb,
  ar_interest_lines intl,
  ar_interest_headers inth,
  hz_parties pty,
  hz_cust_accounts ac,
  hz_cust_acct_sites acs,
  hz_cust_site_uses_all su,
  hz_locations loc,
  hz_party_sites ps,
  fnd_territories_vl terr,
  ar_adjustments adj,
  hr_all_organization_units_tl ou
WHERE intb.interest_batch_id = inth.interest_batch_id
 AND pty.party_id = ac.party_id
 AND inth.customer_id = ac.cust_account_id
 AND inth.customer_site_use_id = su.site_use_id
 AND su.cust_acct_site_id = acs.cust_acct_site_id
 AND acs.party_site_id = ps.party_site_id
 AND ps.location_id = loc.location_id
 AND loc.country = terr.territory_code(+)
 AND ou.organization_id = intb.org_id
 AND ou.LANGUAGE = userenv(&apos;LANG&apos;)
 AND inth.display_flag = &apos;Y&apos;
 ANd intb.batch_status in (&apos;F&apos;,&apos;D&apos;)
 AND inth.interest_header_id=intl.interest_header_id
 ANd intb.transferred_status =  decode(intb.batch_status ,&apos;F&apos;,&apos;S&apos;,intb.transferred_status)
 ANd adj.interest_line_id(+) = intl.interest_line_id
 AND inth.interest_header_id = :int_header_id
 AND inth.header_type IN ( &apos;ADJ&apos;)
 &amp;P_QUERY_WHERE
</SQL_TEXT>
  <ENABLED>Y</ENABLED>
  <XDO_APPLICATION_SHORT_NAME>AR</XDO_APPLICATION_SHORT_NAME>
  <XDO_DATA_SOURCE_CODE>ARLCRPT</XDO_DATA_SOURCE_CODE>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>AR</LANGUAGE>
    <REPORT_NAME>AR تقرير المصروفات المتأخرة</REPORT_NAME>
    <DESCRIPTION>Application: المقبوضات
Source: تقرير المصروفات المتأخرة
Short Name: ARLCRPT
DB package: AR_LATE_CHARGES_REPORT_PVT</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>D</LANGUAGE>
    <REPORT_NAME>AR Verzugsgebühren</REPORT_NAME>
    <DESCRIPTION>Application: Debitoren
Source: Verzugsgebühren
Short Name: ARLCRPT
DB package: AR_LATE_CHARGES_REPORT_PVT</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>F</LANGUAGE>
    <REPORT_NAME>AR Etat des pénalités de retard</REPORT_NAME>
    <DESCRIPTION>Application: Receivables
Source: Etat des pénalités de retard
Short Name: ARLCRPT
DB package: AR_LATE_CHARGES_REPORT_PVT</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>AR Late Charges</REPORT_NAME>
    <DESCRIPTION>Application: Receivables
Source: Late Charges Report
Short Name: ARLCRPT
DB package: AR_LATE_CHARGES_REPORT_PVT</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>ZHS</LANGUAGE>
    <REPORT_NAME>AR 滞纳费用报表</REPORT_NAME>
    <DESCRIPTION>Application: 应收帐款
Source: 滞纳费用报表
Short Name: ARLCRPT
DB package: AR_LATE_CHARGES_REPORT_PVT</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>BI Publisher</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>&amp;p_query_where</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:int_header_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_batch_name_dsp</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_interest_batch_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_query_where</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_request_id</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <ANCHOR>:p_interest_batch_id</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>AR_INTEREST_BATCH_ID</LOV_NAME>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
intb.interest_batch_id id,
intb.batch_name value,
null description
from
ar_interest_batches intb,hr_operating_units ou,ar_lookups lkp
where intb.org_id=ou.organization_id
and mo_global.check_access(organization_id)=&apos;Y&apos;
and intb.batch_status=lkp.lookup_code
and lkp.lookup_type=&apos;AR_RUN_TYPE&apos;
order by intb.batch_name</LOV_QUERY_DSP>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>AR</LANGUAGE>
      <PARAMETER_NAME>اسم المجموعة</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>D</LANGUAGE>
      <PARAMETER_NAME>Stapelbezeichnung</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>Nom du lot</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Batch Name</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>ZHS</LANGUAGE>
      <PARAMETER_NAME>批名</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
  </PARAMETERS>
  <PARAMETER_DEPENDENCIES>
  </PARAMETER_DEPENDENCIES>
  <TEMPLATES>
  </TEMPLATES>
  <DEFAULT_TEMPLATES>
  </DEFAULT_TEMPLATES>
  <UPLOAD_COLUMNS>
  </UPLOAD_COLUMNS>
  <UPLOAD_PARAMETERS>
  </UPLOAD_PARAMETERS>
  <UPLOAD_SQLS>
  </UPLOAD_SQLS>
  <UPLOAD_DEPENDENCIES>
  </UPLOAD_DEPENDENCIES>
 </REPORTS_ROW>
</REPORTS>
</ROOT>
