<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: Madonna test -->
 <REPORTS_ROW>
  <GUID>0B7149FF1E300823E06362FB090517DA</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>SELECT
    hou.name                                                              org_name,
    &apos;CUSTOMER_SITE&apos;                                                       entity_type,
    hp.party_name                                                         customer_name,
    hp.party_number                                                       customer_number,
    ftr.territory_short_name                                              customer_country,
    hp.status,
    zr.registration_number                                                trn_number,
    ftvr.territory_short_name                                             trn_country,
    zr.tax_regime_code,
    zr.tax,
    zr.registration_status_code,
    zr.effective_from,
    zr.effective_to,
    zptp.rep_registration_number                                          default_trn_number,
    hcsu.tax_reference                                                    legacy_trn_field,
    apps.hz_format_pub.format_address(hl.location_id, NULL, NULL, &apos;&apos;, &apos;&apos;) AS site_address,
    hcsu.site_use_code,
    hp.party_type,
    hps.party_site_number,
    hca.account_number                                                    cust_account_number
FROM
    hz_parties             hp,
    hz_party_sites         hps,
    hz_cust_accounts_all   hca,
    hz_cust_acct_sites_all hcas,
    hz_cust_site_uses_all  hcsu,
    hz_locations           hl,
    zx_party_tax_profile   zptp,
    zx_registrations       zr,
    hr_operating_units     hou,
    zx_regimes_b           zxb,
    fnd_territories_vl     ftvr,
    fnd_territories_vl     ftr
WHERE
        hp.party_id = hps.party_id
    AND zptp.party_id = hps.party_site_id
    AND zptp.party_tax_profile_id = zr.party_tax_profile_id (+)
    AND hp.party_id = hca.party_id
    AND hps.location_id = hl.location_id (+)
    AND hca.cust_account_id = hcas.cust_account_id (+)
    AND hps.party_site_id (+) = hcas.party_site_id
    AND hcas.cust_acct_site_id = hcsu.cust_acct_site_id
    AND hou.organization_id = hcas.org_id
    AND zr.tax_regime_code = zxb.tax_regime_code (+)
    AND zxb.country_code = ftvr.territory_code (+)
    AND hp.country = ftr.territory_code (+)
    AND hp.party_type IN ( &apos;ORGANIZATION&apos;, &apos;PERSON&apos; )
ORDER BY
    hp.party_name,
    hps.party_site_number</SQL_TEXT>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>Madonna test</REPORT_NAME>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
  </ANCHORS>
  <PARAMETERS>
  </PARAMETERS>
  <TEMPLATES>
  </TEMPLATES>
  <DEFAULT_TEMPLATES>
  </DEFAULT_TEMPLATES>
  <UPLOAD_COLUMNS>
  </UPLOAD_COLUMNS>
  <UPLOAD_PARAMETERS>
  </UPLOAD_PARAMETERS>
  <UPLOAD_SQLS>
  </UPLOAD_SQLS>
 </REPORTS_ROW>
</REPORTS>
</ROOT>
