<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>
<LOVS>
<!-- loader xml for Enginatics Blitz Report lov: AR Account Number -->
 <LOVS_ROW>
  <GUID>8E2FF36EDE7F79D2E0530100007F1FF2</GUID>
  <LOV_NAME>AR Account Number</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <FILTER_BEFORE_DISPLAY>Y</FILTER_BEFORE_DISPLAY>
  <LOV_QUERY>select
hca.account_number value,
hp.party_name||&apos; (&apos;||initcap(hp.party_type)||&apos;)&apos; description
from
hz_parties hp,
hz_cust_accounts hca
where
hp.party_id=hca.party_id and
(
:$flex$.operating_unit is null or
hca.cust_account_id in (
select
hcasa.cust_account_id
from
hr_all_organization_units_vl haouv,
hz_cust_acct_sites_all hcasa
where
xxen_util.contains(:$flex$.operating_unit,haouv.name)=&apos;Y&apos; and
haouv.organization_id=hcasa.org_id
)
)
order by
hp.party_name</LOV_QUERY>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
<!-- loader xml for Enginatics Blitz Report lov: AR Customer Name -->
 <LOVS_ROW>
  <GUID>8E2FF36EDE8679D2E0530100007F1FF2</GUID>
  <LOV_NAME>AR Customer Name</LOV_NAME>
  <FILTER_BEFORE_DISPLAY>Y</FILTER_BEFORE_DISPLAY>
  <LOV_QUERY>select
hp.party_name value,
hca.account_number||&apos; (&apos;||initcap(hp.party_type)||&apos;)&apos;  description
from
hz_parties hp,
hz_cust_accounts hca
where
hp.party_id=hca.party_id and
(
:$flex$.operating_unit is null or
hca.cust_account_id in (
select
hcasa.cust_account_id
from
hr_all_organization_units_vl haouv,
hz_cust_acct_sites_all hcasa
where
xxen_util.contains(:$flex$.operating_unit,haouv.name)=&apos;Y&apos; and
haouv.organization_id=hcasa.org_id
)
)
order by
hp.party_name</LOV_QUERY>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
<!-- loader xml for Enginatics Blitz Report lov: Country -->
 <LOVS_ROW>
  <GUID>8E2FF36EDE8379D2E0530100007F1FF2</GUID>
  <LOV_NAME>Country</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>select
ftv.territory_short_name value,
ftv.territory_code||&apos;: &apos;||ftv.description description
from
fnd_territories_vl ftv
order by
ftv.territory_short_name</LOV_QUERY>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
<!-- loader xml for Enginatics Blitz Report lov: Yes -->
 <LOVS_ROW>
  <GUID>8E2FF36EDEA679D2E0530100007F1FF2</GUID>
  <LOV_NAME>Yes</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>select &apos;Y&apos; id, xxen_util.meaning(&apos;Y&apos;,&apos;YES_NO&apos;,0) value, null description from dual</LOV_QUERY>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
</LOVS>
<REPORTS>
<!-- loader xml for Enginatics Blitz Report: AJ: AR Customers and Sites -->
 <REPORTS_ROW>
  <GUID>22F384D1D6A8871DE06362FB09051544</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>select
x.operating_unit,
x.party_type,
x.party_name,
x.party_number,
x.url,
x.duns_number,
x.sic_code,
x.category,
x.account_number,
x.reference,
x.site_reference,
x.site_use_reference,
x.account_type,
x.classification,
x.sales_channel,
nvl(jrret1.resource_name,jrs1.name) primary_salesrep,
nvl(jrret2.resource_name,jrs2.name) site_primary_salesrep,
x.order_type,
x.site_order_type,
x.price_list,
x.site_price_list,
x.profile_class,
x.site_profile_class,
x.credit_classification,
x.site_credit_classification,
x.location,
x.site_name,
x.site_number,
x.country,
x.address,
x.address1,
x.address2,
x.address3,
x.address4,
x.city,
x.county,
x.state,
x.province,
x.postal_code,
x.addressee,
x.identifying_address_flag,
x.site_use,
x.primary_flag,
x.ship_partial,
x.taxpayer_id,
x.party_tax_registration_number,
(select ftv.territory_short_name from fnd_territories_vl ftv where zptp.country_code=ftv.territory_code) tax_profile_default_country,
zptp.rep_registration_number tax_profile_default_reg_number,
x.site_tax_registration_number,
(select ftv.territory_short_name from fnd_territories_vl ftv where zptp2.country_code=ftv.territory_code) site_tax_prof_default_country,
zptp2.rep_registration_number site_tax_prof_default_reg_num,
avtab1.tax_rate,
avtab2.tax_rate site_tax_rate,
&amp;column_trx_count
x.latest_trx_date,
x.pay_sched_last_update_date,
x.demand_class,
x.ship_sets,
x.party_status,
x.party_site_status,
x.account_status,
x.site_status,
x.site_use_status,
x.warehouse,
x.site_warehouse,
x.fob,
x.site_fob,
x.freight_term,
x.site_freight_term,
x.carrier,
x.site_carrier,
rtt1.name payment_term,
rtt2.name site_payment_term,
x.send_statement,
x.site_send_statement,
x.statement_cycle,
x.site_statement_cycle,
x.send_credit_balance,
x.site_send_credit_balance,
x.send_dunning_letters,
x.site_send_dunning_letters,
x.dunning_letter,
x.site_dunning_letter,
x.collector_name,
x.site_collector_name,
x.credit_class_code,
x.site_credit_class_code,
x.receivables_account,
x.receivables_account_desc,
acv.title_meaning contact_title,
acv.first_name contact_first_name,
acv.last_name contact_last_name,
acv.job_title contact_job_tile,
hz_utility_v2pub.get_lookupmeaning (&apos;FND_LOOKUP_VALUES&apos;,&apos;HZ_CPUI_REGISTRY_STATUS&apos;,acv.status) contact_status,
hpc.primary_phone_country_code contact_phone_country_code,
hpc.primary_phone_area_code contact_phone_area_code,
hpc.primary_phone_number contact_phone_number,
hpc.primary_phone_extension contact_phone_extension,
xxen_util.meaning(hpc.primary_phone_line_type,&apos;PHONE_LINE_TYPE&apos;,222) contact_phone_line_type,
hpc.email_address contact_email,
acv.mail_stop contact_mail_stop,
&amp;dff_columns2
x.created_by,
x.creation_date,
x.last_updated_by,
x.last_update_date,
x.account_created_by,
x.account_creation_date,
x.account_last_updated_by,
x.account_last_update_date,
x.site_created_by,
x.site_creation_date,
x.site_last_updated_by,
x.site_last_update_date,
x.profile_created_by,
x.profile_creation_date,
x.profile_last_updated_by,
x.profile_last_update_date,
x.site_profile_created_by,
x.site_profile_creation_date,
x.site_profile_last_updated_by,
x.site_profile_last_update_date,
x.org_id,
x.profile_level,
x.cust_account_profile_id,
x.site_cust_account_profile_id,
x.cust_account_id,
x.site_use_id
from
(
select
hou.name operating_unit,
initcap(hp.party_type) party_type,
hp.party_name,
hp.party_number,
hp.url,
hp.duns_number,
decode(hp.party_type,&apos;ORGANIZATION&apos;,hp.sic_code) sic_code,
xxen_util.meaning(hcas.class_code,&apos;CUSTOMER_CATEGORY&apos;,222) category,
hca.account_number,
hca.orig_system_reference reference,
hcasa.orig_system_reference site_reference,
hcsua.orig_system_reference site_use_reference,
decode(hca.customer_type,&apos;R&apos;,&apos;External&apos;,&apos;I&apos;,&apos;Internal&apos;) account_type,
xxen_util.meaning(hca.customer_class_code,&apos;CUSTOMER CLASS&apos;,222) classification,
xxen_util.meaning(hca.sales_channel_code,&apos;SALES_CHANNEL&apos;,660) sales_channel,
ottt1.name order_type,
ottt2.name site_order_type,
qlht1.name price_list,
qlht2.name site_price_list,
hcpc1.name profile_class,
hcpc2.name site_profile_class,
xxen_util.meaning(hcpc1.credit_classification,&apos;AR_CMGT_CREDIT_CLASSIFICATION&apos;,222) credit_classification,
xxen_util.meaning(hcpc2.credit_classification,&apos;AR_CMGT_CREDIT_CLASSIFICATION&apos;,222) site_credit_classification,
hcsua.location,
hps.party_site_name site_name,
hps.party_site_number site_number,
ftt.territory_short_name country,
hz_format_pub.format_address (hps.location_id,null,null,&apos; , &apos;) address,
hl.address1,
hl.address2,
hl.address3,
hl.address4,
hl.city,
hl.county,
hl.state,
hl.province,
hl.postal_code,
hps.addressee,
xxen_util.meaning(decode(hps.identifying_address_flag,&apos;Y&apos;,&apos;Y&apos;),&apos;YES_NO&apos;,0) identifying_address_flag,
xxen_util.meaning(hcsua.site_use_code,&apos;SITE_USE_CODE&apos;,222) site_use,
xxen_util.meaning(hcsua.primary_flag,&apos;YES_NO&apos;,0) primary_flag,
xxen_util.meaning(hcsua.ship_partial,&apos;YES_NO&apos;,0) ship_partial,
hp.jgzz_fiscal_code taxpayer_id,
hp.tax_reference party_tax_registration_number,
hcsua.tax_reference site_tax_registration_number,
coalesce(
(select max(rcta.trx_date) from ra_customer_trx_all rcta where rcta.bill_to_customer_id = hca.cust_account_id and rcta.bill_to_site_use_id = nvl(hcsua.site_use_id,rcta.bill_to_site_use_id) and :detail_level != &apos;Site&apos;),
(select max(rcta.trx_date) from ra_customer_trx_all rcta where rcta.ship_to_customer_id = hca.cust_account_id and rcta.ship_to_site_use_id = nvl(hcsua.site_use_id,rcta.ship_to_site_use_id) and :detail_level != &apos;Site&apos;),
(select max(rcta.trx_date) from ra_customer_trx_all rcta, hz_cust_site_uses_all hcsua2 where rcta.ship_to_customer_id = hca.cust_account_id and rcta.bill_to_site_use_id = hcsua2.site_use_id and hcsua2.cust_acct_site_id = hcasa.cust_acct_site_id and :detail_level = &apos;Site&apos;),
(select max(rcta.trx_date) from ra_customer_trx_all rcta, hz_cust_site_uses_all hcsua2 where rcta.ship_to_customer_id = hca.cust_account_id and rcta.ship_to_site_use_id = hcsua2.site_use_id and hcsua2.cust_acct_site_id = hcasa.cust_acct_site_id and :detail_level = &apos;Site&apos;)
) latest_trx_date,
coalesce(
(select max(xxen_util.client_time(apsa.last_update_date)) from ar_payment_schedules_all apsa where apsa.customer_id = hca.cust_account_id and apsa.customer_site_use_id = nvl(hcsua.site_use_id,apsa.customer_site_use_id) and :detail_level != &apos;Site&apos;),
(select max(xxen_util.client_time(apsa.last_update_date)) from ar_payment_schedules_all apsa, ra_customer_trx_all rcta where apsa.customer_trx_id = rcta.customer_trx_id and rcta.ship_to_customer_id = hca.cust_account_id and rcta.ship_to_site_use_id = nvl(hcsua.site_use_id,rcta.ship_to_site_use_id) and :detail_level != &apos;Site&apos;),
(select max(xxen_util.client_time(apsa.last_update_date)) from ar_payment_schedules_all apsa, hz_cust_site_uses_all hcsua2 where apsa.customer_id = hca.cust_account_id and apsa.customer_site_use_id = hcsua2.site_use_id and hcsua2.cust_acct_site_id = hcasa.cust_acct_site_id and :detail_level = &apos;Site&apos;),
(select max(xxen_util.client_time(apsa.last_update_date)) from ar_payment_schedules_all apsa, ra_customer_trx_all rcta, hz_cust_site_uses_all hcsua2 where apsa.customer_trx_id = rcta.customer_trx_id and rcta.ship_to_customer_id = hca.cust_account_id and rcta.ship_to_site_use_id = hcsua2.site_use_id and hcsua2.cust_acct_site_id = hcasa.cust_acct_site_id and :detail_level = &apos;Site&apos;)
) pay_sched_last_update_date,
xxen_util.meaning(hcsua.demand_class_code,&apos;DEMAND_CLASS&apos;,3) demand_class,
xxen_util.meaning(hcsua.ship_sets_include_lines_flag,&apos;YES_NO&apos;,0) ship_sets,
decode(hp.status,&apos;A&apos;,&apos;Active&apos;,&apos;I&apos;,&apos;Inactive&apos;,&apos;D&apos;,&apos;Deleted&apos;) party_status,
decode(hps.status,&apos;A&apos;,&apos;Active&apos;,&apos;I&apos;,&apos;Inactive&apos;,&apos;D&apos;,&apos;Deleted&apos;) party_site_status,
decode(hca.status,&apos;A&apos;,&apos;Active&apos;,&apos;I&apos;,&apos;Inactive&apos;,&apos;D&apos;,&apos;Deleted&apos;) account_status,
decode(hcasa.status,&apos;A&apos;,&apos;Active&apos;,&apos;I&apos;,&apos;Inactive&apos;,&apos;D&apos;,&apos;Deleted&apos;) site_status,
decode(hcsua.status,&apos;A&apos;,&apos;Active&apos;,&apos;I&apos;,&apos;Inactive&apos;,&apos;D&apos;,&apos;Deleted&apos;) site_use_status,
haouv1.name warehouse,
haouv2.name site_warehouse,
xxen_util.meaning(hca.fob_point,&apos;FOB&apos;,222) fob,
xxen_util.meaning(hcsua.fob_point,&apos;FOB&apos;,222) site_fob,
xxen_util.meaning(hca.freight_term,&apos;FREIGHT_TERMS&apos;,660) freight_term,
xxen_util.meaning(hcsua.freight_term,&apos;FREIGHT_TERMS&apos;,660) site_freight_term,
xxen_util.meaning(hca.ship_via,&apos;SHIP_METHOD&apos;,3) carrier,
xxen_util.meaning(hcsua.ship_via,&apos;SHIP_METHOD&apos;,3) site_carrier,
xxen_util.meaning(hcp1.send_statements,&apos;YES_NO&apos;,0) send_statement,
xxen_util.meaning(hcp2.send_statements,&apos;YES_NO&apos;,0) site_send_statement,
ascl1.name statement_cycle,
ascl2.name site_statement_cycle,
xxen_util.meaning(hcp1.credit_balance_statements,&apos;YES_NO&apos;,0) send_credit_balance,
xxen_util.meaning(hcp2.credit_balance_statements,&apos;YES_NO&apos;,0) site_send_credit_balance,
xxen_util.meaning(hcp1.dunning_letters,&apos;YES_NO&apos;,0) send_dunning_letters,
xxen_util.meaning(hcp2.dunning_letters,&apos;YES_NO&apos;,0) site_send_dunning_letters,
adls1.name dunning_letter,
adls2.name site_dunning_letter,
ac1.name collector_name,
ac2.name site_collector_name,
hcp1.credit_classification credit_class_code,
hcp2.credit_classification site_credit_class_code,
case when hcsua.gl_id_rec is not null then fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;recacct&apos;, &apos;SQLGL&apos;, &apos;GL#&apos;, gsob.chart_of_accounts_id, null, hcsua.gl_id_rec, &apos;ALL&apos;, &apos;Y&apos;, &apos;VALUE&apos;) else null end receivables_account,
case when hcsua.gl_id_rec is not null then fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;recacct&apos;, &apos;SQLGL&apos;, &apos;GL#&apos;, gsob.chart_of_accounts_id, null, hcsua.gl_id_rec, &apos;ALL&apos;, &apos;Y&apos;, &apos;DESCRIPTION&apos;) else null end receivables_account_desc,
&amp;dff_columns
xxen_util.user_name(hp.created_by) created_by,
xxen_util.client_time(hp.creation_date) creation_date,
xxen_util.user_name(hp.last_updated_by) last_updated_by,
xxen_util.client_time(hp.last_update_date) last_update_date,
xxen_util.user_name(hca.created_by) account_created_by,
xxen_util.client_time(hca.creation_date) account_creation_date,
xxen_util.user_name(hca.last_updated_by) account_last_updated_by,
xxen_util.client_time(hca.last_update_date) account_last_update_date,
xxen_util.user_name(hcasa.created_by) site_created_by,
xxen_util.client_time(hcasa.creation_date) site_creation_date,
xxen_util.user_name(hcasa.last_updated_by) site_last_updated_by,
xxen_util.client_time(hcasa.last_update_date) site_last_update_date,
xxen_util.user_name(hcp1.created_by) profile_created_by,
xxen_util.client_time(hcp1.creation_date) profile_creation_date,
xxen_util.user_name(hcp1.last_updated_by) profile_last_updated_by,
xxen_util.client_time(hcp1.last_update_date) profile_last_update_date,
xxen_util.user_name(hcp2.created_by) site_profile_created_by,
xxen_util.client_time(hcp2.creation_date) site_profile_creation_date,
xxen_util.user_name(hcp2.last_updated_by) site_profile_last_updated_by,
xxen_util.client_time(hcp2.last_update_date) site_profile_last_update_date,
nvl(hcsua.org_id,hcasa.org_id) org_id,
nvl2(hcp2.cust_account_profile_id,&apos;site&apos;,nvl2(hcp1.cust_account_profile_id,&apos;account&apos;,null)) profile_level,
hcp1.cust_account_profile_id,
hcp1.cust_account_profile_id site_cust_account_profile_id,
hp.party_id,
hca.cust_account_id,
hcsua.site_use_id,
hou.set_of_books_id,
hcasa.cust_acct_site_id,
hps.party_site_id,
hca.primary_salesrep_id primary_salesrep_id,
hcsua.primary_salesrep_id site_primary_salesrep_id,
nvl(hcp1.standard_terms,hca.payment_term_id) payment_term_id,
nvl(hcp2.standard_terms,hcsua.payment_term_id) site_payment_term_id,
hca.tax_code tax_code,
hcsua.tax_code site_tax_code
from
hr_operating_units hou,
gl_sets_of_books gsob,
hz_parties hp,
hz_cust_accounts hca,
(select hcasa.* from hz_cust_acct_sites_all hcasa where :detail_level in (&apos;Site&apos;,&apos;Site Use&apos;)) hcasa,
hz_party_sites hps,
hz_locations hl,
fnd_territories_tl ftt,
(select hcsua.* from hz_cust_site_uses_all hcsua where :detail_level=&apos;Site Use&apos;) hcsua,
(select hcp.* from hz_customer_profiles hcp where hcp.site_use_id is null) hcp1,
(select hcp.* from hz_customer_profiles hcp where hcp.site_use_id is not null and :detail_level=&apos;Site Use&apos;) hcp2,
(select hcas.* from hz_code_assignments hcas where hcas.owner_table_name=&apos;HZ_PARTIES&apos; and hcas.class_category=&apos;CUSTOMER_CATEGORY&apos; and hcas.primary_flag=&apos;Y&apos;) hcas,
qp_list_headers_tl qlht1,
qp_list_headers_tl qlht2,
hz_cust_profile_classes hcpc1,
hz_cust_profile_classes hcpc2,
oe_transaction_types_tl ottt1,
oe_transaction_types_tl ottt2,
hr_all_organization_units_vl haouv1,
hr_all_organization_units_vl haouv2,
ar_dunning_letter_sets adls1,
ar_dunning_letter_sets adls2,
ar_statement_cycles ascl1,
ar_statement_cycles ascl2,
ar_collectors ac1,
ar_collectors ac2
where
1=1 and
(hcasa.org_id is null or hcasa.org_id in (select mgoat.organization_id from mo_glob_org_access_tmp mgoat union select fnd_global.org_id from dual where fnd_release.major_version=11)) and
hp.party_id=hca.party_id and
hca.cust_account_id=hcasa.cust_account_id(+) and
hcasa.org_id=hou.organization_id(+) and
to_number(hou.set_of_books_id)=gsob.set_of_books_id(+) and
hcasa.party_site_id=hps.party_site_id(+) and
hps.location_id=hl.location_id(+) and
hl.country=ftt.territory_code(+) and
ftt.language(+)=userenv(&apos;lang&apos;) and
hcasa.cust_acct_site_id=hcsua.cust_acct_site_id(+) and
hca.cust_account_id=hcp1.cust_account_id(+) and
hcsua.site_use_id=hcp2.site_use_id(+) and
hp.party_id=hcas.owner_table_id(+) and
hca.price_list_id=qlht1.list_header_id(+) and
hcsua.price_list_id=qlht2.list_header_id(+) and
qlht1.language(+)=userenv(&apos;lang&apos;) and
qlht2.language(+)=userenv(&apos;lang&apos;) and
hcp1.profile_class_id=hcpc1.profile_class_id(+) and
hcp2.profile_class_id=hcpc2.profile_class_id(+) and
hca.order_type_id=ottt1.transaction_type_id(+) and
hcsua.order_type_id=ottt2.transaction_type_id(+) and
ottt1.language(+)=userenv(&apos;lang&apos;) and
ottt2.language(+)=userenv(&apos;lang&apos;) and
hca.warehouse_id=haouv1.organization_id(+) and
hcsua.warehouse_id=haouv2.organization_id(+) and
hcp1.dunning_letter_set_id=adls1.dunning_letter_set_id(+) and
hcp2.dunning_letter_set_id=adls2.dunning_letter_set_id(+) and
hcp1.statement_cycle_id=ascl1.statement_cycle_id(+) and
hcp2.statement_cycle_id=ascl2.statement_cycle_id(+) and
hcp1.collector_id=ac1.collector_id(+) and
hcp2.collector_id=ac2.collector_id(+)
) x,
jtf_rs_salesreps jrs1,
jtf_rs_salesreps jrs2,
(select jrret.* from jtf_rs_resource_extns_tl jrret where jrret.language=userenv(&apos;lang&apos;) and jrret.category in (&apos;EMPLOYEE&apos;,&apos;OTHER&apos;,&apos;PARTY&apos;,&apos;PARTNER&apos;,&apos;SUPPLIER_CONTACT&apos;)) jrret1,
(select jrret.* from jtf_rs_resource_extns_tl jrret where jrret.language=userenv(&apos;lang&apos;) and jrret.category in (&apos;EMPLOYEE&apos;,&apos;OTHER&apos;,&apos;PARTY&apos;,&apos;PARTNER&apos;,&apos;SUPPLIER_CONTACT&apos;)) jrret2,
(select x.* from (select max(avtab.vat_tax_id) over (partition by avtab.set_of_books_id, avtab.tax_code) max_vat_tax_id, avtab.* from ar_vat_tax_all_b avtab where sysdate between avtab.start_date and nvl(avtab.end_date,sysdate)) x where x.vat_tax_id=x.max_vat_tax_id) avtab1,
(select x.* from (select max(avtab.vat_tax_id) over (partition by avtab.set_of_books_id, avtab.tax_code) max_vat_tax_id, avtab.* from ar_vat_tax_all_b avtab where sysdate between avtab.start_date and nvl(avtab.end_date,sysdate)) x where x.vat_tax_id=x.max_vat_tax_id) avtab2,
ra_terms_tl rtt1,
ra_terms_tl rtt2,
ar_contacts_v acv,
hz_parties hpc,
zx_party_tax_profile zptp,
zx_party_tax_profile zptp2
where
x.payment_term_id=rtt1.term_id(+) and
x.site_payment_term_id=rtt2.term_id(+) and
rtt1.language(+)=userenv(&apos;lang&apos;) and
rtt2.language(+)=userenv(&apos;lang&apos;) and
x.tax_code=avtab1.tax_code(+) and
x.site_tax_code=avtab2.tax_code(+) and
x.set_of_books_id=avtab1.set_of_books_id(+) and
x.set_of_books_id=avtab2.set_of_books_id(+) and
x.primary_salesrep_id=jrs1.salesrep_id(+) and
x.site_primary_salesrep_id=jrs2.salesrep_id(+) and
x.org_id=jrs1.org_id(+) and
x.org_id=jrs2.org_id(+) and
jrs1.resource_id=jrret1.resource_id(+) and
jrs2.resource_id=jrret2.resource_id(+) and
nvl2(:show_contacts,x.cust_account_id,null)=acv.customer_id(+) and
nvl(x.cust_acct_site_id,-1)=nvl(acv.address_id(+),-1) and
acv.status(+)=&apos;A&apos; and
acv.rel_party_id=hpc.party_id(+) and
x.party_id=zptp.party_id(+) and
zptp.party_type_code(+)=&apos;THIRD_PARTY&apos; and
x.party_site_id=zptp2.party_id(+) and
zptp2.party_type_code(+)=&apos;THIRD_PARTY_SITE&apos;
order by
x.party_name,
x.party_number,
x.account_number,
x.operating_unit,
x.country,
x.address,
x.site_use</SQL_TEXT>
  <COPIED_FROM_GUID>49A8B1A8038E08ACE0530100007FEB91</COPIED_FROM_GUID>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>AJ: AR Customers and Sites</REPORT_NAME>
    <DESCRIPTION>Master data report of customer master data including address, sites, site uses, payment terms, Salesperson, price list and other profile information.</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>&amp;column_trx_count</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;dff_columns</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;dff_columns2</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>1=1</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:detail_level</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:show_contacts</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 custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
hou.name value,
null description
from
hr_operating_units hou
where
hou.organization_id in (select mgoat.organization_id from mo_glob_org_access_tmp mgoat union select fnd_global.org_id from dual where fnd_release.major_version=11) and
:$flex$.level in (&apos;Site&apos;,&apos;Site Use&apos;)
order by
hou.name</LOV_QUERY_DSP>
    <DEFAULT_VALUE>coalesce(xxen_util.default_operating_unit,xxen_util.previous_parameter_value(:parameter_id))</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>Unité d&apos;exploitation</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <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>upper(hp.party_name) like upper(:customer_name)</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>AR Customer Name</LOV_NAME>
    <LOV_GUID>8E2FF36EDE8679D2E0530100007F1FF2</LOV_GUID>
    <FILTER_BEFORE_DISPLAY_DSP>Y</FILTER_BEFORE_DISPLAY_DSP>
    <LOV_QUERY_DSP>select
hp.party_name value,
hca.account_number||&apos; (&apos;||initcap(hp.party_type)||&apos;)&apos;  description
from
hz_parties hp,
hz_cust_accounts hca
where
hp.party_id=hca.party_id and
(
:$flex$.operating_unit is null or
hca.cust_account_id in (
select
hcasa.cust_account_id
from
hr_all_organization_units_vl haouv,
hz_cust_acct_sites_all hcasa
where
xxen_util.contains(:$flex$.operating_unit,haouv.name)=&apos;Y&apos; and
haouv.organization_id=hcasa.org_id
)
)
order by
hp.party_name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>Nom du client</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Customer Name</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>upper(hp.party_name) not like upper(:customer_name_not_like)</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>AR Customer Name</LOV_NAME>
    <LOV_GUID>8E2FF36EDE8679D2E0530100007F1FF2</LOV_GUID>
    <FILTER_BEFORE_DISPLAY_DSP>Y</FILTER_BEFORE_DISPLAY_DSP>
    <LOV_QUERY_DSP>select
hp.party_name value,
hca.account_number||&apos; (&apos;||initcap(hp.party_type)||&apos;)&apos;  description
from
hz_parties hp,
hz_cust_accounts hca
where
hp.party_id=hca.party_id and
(
:$flex$.operating_unit is null or
hca.cust_account_id in (
select
hcasa.cust_account_id
from
hr_all_organization_units_vl haouv,
hz_cust_acct_sites_all hcasa
where
xxen_util.contains(:$flex$.operating_unit,haouv.name)=&apos;Y&apos; and
haouv.organization_id=hcasa.org_id
)
)
order by
hp.party_name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>Nom du client pas comme</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Customer Name not like</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>hca.account_number=:account_number</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>AR Account Number</LOV_NAME>
    <LOV_GUID>8E2FF36EDE7F79D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <FILTER_BEFORE_DISPLAY_DSP>Y</FILTER_BEFORE_DISPLAY_DSP>
    <LOV_QUERY_DSP>select
hca.account_number value,
hp.party_name||&apos; (&apos;||initcap(hp.party_type)||&apos;)&apos; description
from
hz_parties hp,
hz_cust_accounts hca
where
hp.party_id=hca.party_id and
(
:$flex$.operating_unit is null or
hca.cust_account_id in (
select
hcasa.cust_account_id
from
hr_all_organization_units_vl haouv,
hz_cust_acct_sites_all hcasa
where
xxen_util.contains(:$flex$.operating_unit,haouv.name)=&apos;Y&apos; and
haouv.organization_id=hcasa.org_id
)
)
order by
hp.party_name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>Numéro de compte</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Account Number</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>hl.country in (select ftt.territory_code from fnd_territories_tl ftt where ftt.territory_short_name=:country and ftt.language=userenv(&apos;lang&apos;))</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>Country</LOV_NAME>
    <LOV_GUID>8E2FF36EDE8379D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ftv.territory_short_name value,
ftv.territory_code||&apos;: &apos;||ftv.description description
from
fnd_territories_vl ftv
order by
ftv.territory_short_name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>Pays</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Country</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>hps.identifying_address_flag=&apos;Y&apos;</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>Yes</LOV_NAME>
    <LOV_GUID>8E2FF36EDEA679D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select &apos;Y&apos; id, xxen_util.meaning(&apos;Y&apos;,&apos;YES_NO&apos;,0) value, null description from dual</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>Afficher uniquement les adresses d&apos;identification</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Show identifying Addresses only</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>hp.status=&apos;A&apos; and
hca.status=&apos;A&apos; and
nvl(hcasa.status,&apos;A&apos;)=&apos;A&apos; and
nvl(hcsua.status,&apos;A&apos;)=&apos;A&apos;</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>Yes</LOV_NAME>
    <LOV_GUID>8E2FF36EDEA679D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select &apos;Y&apos; id, xxen_util.meaning(&apos;Y&apos;,&apos;YES_NO&apos;,0) value, null description from dual</LOV_QUERY_DSP>
    <DEFAULT_VALUE>Y</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>Afficher uniquement les actifs</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Show active only</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>8</SORT_ORDER>
    <DISPLAY_SEQUENCE>80</DISPLAY_SEQUENCE>
    <ANCHOR>:show_contacts</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>Yes</LOV_NAME>
    <LOV_GUID>8E2FF36EDEA679D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select &apos;Y&apos; id, xxen_util.meaning(&apos;Y&apos;,&apos;YES_NO&apos;,0) value, null description from dual</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Show Contacts</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>9</SORT_ORDER>
    <DISPLAY_SEQUENCE>90</DISPLAY_SEQUENCE>
    <ANCHOR>&amp;column_trx_count</ANCHOR>
    <SQL_TEXT> (select 
  count(distinct rcta.customer_trx_id)
  from  
  ra_customer_trx_all rcta
  where
  rcta.trx_date&gt;=sysdate-:trx_count_days and 
  x.cust_account_id=rcta.bill_to_customer_id and 
  (nvl(x.site_use_id,rcta.bill_to_site_use_id)=rcta.bill_to_site_use_id or
   nvl(x.site_use_id,rcta.ship_to_site_use_id)=rcta.ship_to_site_use_id 
  ) and
  :detail_level != &apos;Site&apos;
 ) + 
 (select 
  count(distinct rcta.customer_trx_id)
  from  
  ra_customer_trx_all rcta,
  hz_cust_site_uses_all hcsua2
  where
  x.cust_acct_site_id=hcsua2.cust_acct_site_id and
  rcta.trx_date&gt;=sysdate-:trx_count_days and 
  x.cust_account_id=rcta.bill_to_customer_id and
  (hcsua2.site_use_id=rcta.bill_to_site_use_id or
   hcsua2.site_use_id=rcta.ship_to_site_use_id
  ) and
  :detail_level = &apos;Site&apos;
 ) trx_count,</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Number</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>Afficher le nombre de trx dans les x jours</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Show trx count within x days</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>10</SORT_ORDER>
    <DISPLAY_SEQUENCE>100</DISPLAY_SEQUENCE>
    <ANCHOR>:detail_level</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select &apos;Customer&apos; value, &apos;Customer information only&apos; description from dual union all
select &apos;Site&apos; value, &apos;Customer plus address information&apos; description from dual union all
select &apos;Site Use&apos; value, &apos;Customer, address and site use information&apos; description from dual</LOV_QUERY_DSP>
    <DEFAULT_VALUE>Site Use</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>Niveau</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Level</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>11</SORT_ORDER>
    <DISPLAY_SEQUENCE>110</DISPLAY_SEQUENCE>
    <ANCHOR>&amp;dff_columns</ANCHOR>
    <SQL_TEXT>select
xxen_util.dff_columns(p_table_name=&gt;&apos;hz_parties&apos;,p_column_name_prefix=&gt;&apos;Party: &apos;)||
xxen_util.dff_columns(p_table_name=&gt;&apos;hz_cust_accounts&apos;,p_column_name_prefix=&gt;&apos;Account: &apos;)||
case when :detail_level in (&apos;Site&apos;,&apos;Site Use&apos;) then xxen_util.dff_columns(p_table_name=&gt;&apos;hz_cust_acct_sites_all&apos;,p_column_name_prefix=&gt;&apos;Site: &apos;) end||
case when :detail_level=&apos;Site Use&apos; then xxen_util.dff_columns(p_table_name=&gt;&apos;hz_cust_site_uses_all&apos;,p_column_name_prefix=&gt;&apos;Site Use: &apos;) end
from
dual</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>Yes</LOV_NAME>
    <LOV_GUID>8E2FF36EDEA679D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select &apos;Y&apos; id, xxen_util.meaning(&apos;Y&apos;,&apos;YES_NO&apos;,0) value, null description from dual</LOV_QUERY_DSP>
    <DEFAULT_VALUE>Y</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Show DFF Attributes</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>12</SORT_ORDER>
    <ANCHOR>&amp;dff_columns2</ANCHOR>
    <SQL_TEXT>select
xxen_util.dff_columns(p_table_name=&gt;&apos;hz_parties&apos;,p_column_name_prefix=&gt;&apos;Party: &apos;,p_prefix=&gt;&apos;x.&apos;)||
xxen_util.dff_columns(p_table_name=&gt;&apos;hz_cust_accounts&apos;,p_column_name_prefix=&gt;&apos;Account: &apos;,p_prefix=&gt;&apos;x.&apos;)||
case when :detail_level in (&apos;Site&apos;,&apos;Site Use&apos;) then xxen_util.dff_columns(p_table_name=&gt;&apos;hz_cust_acct_sites_all&apos;,p_column_name_prefix=&gt;&apos;Site: &apos;,p_prefix=&gt;&apos;x.&apos;) end||
case when :detail_level=&apos;Site Use&apos; then xxen_util.dff_columns(p_table_name=&gt;&apos;hz_cust_site_uses_all&apos;,p_column_name_prefix=&gt;&apos;Site Use: &apos;,p_prefix=&gt;&apos;x.&apos;) end
from
dual</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Show DFF Attributes</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>13</SORT_ORDER>
    <DISPLAY_SEQUENCE>120</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>((hp.creation_date&gt;=:creation_date_from and hp.creation_date&lt;:creation_date_to+1) or 
(hca.creation_date&gt;=:creation_date_from and hca.creation_date&lt;:creation_date_to+1) or 
(nvl(hcasa.creation_date,:creation_date_from-1)&gt;=:creation_date_from and nvl(hcasa.creation_date,:creation_date_to+1)&lt;:creation_date_to+1) or (nvl(hcp1.creation_date,:creation_date_from-1)&gt;=:creation_date_from and nvl(hcp1.creation_date,:creation_date_to+1)&lt;:creation_date_to+1) or (nvl(hcp2.creation_date,:creation_date_from-1)&gt;=:creation_date_from and nvl(hcp2.creation_date,:creation_date_to+1)&lt;:creation_date_to+1))</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Creation Date From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>14</SORT_ORDER>
    <DISPLAY_SEQUENCE>130</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>((hp.creation_date&gt;=:creation_date_from and hp.creation_date&lt;:creation_date_to+1) or 
(hca.creation_date&gt;=:creation_date_from and hca.creation_date&lt;:creation_date_to+1) or 
(nvl(hcasa.creation_date,:creation_date_from-1)&gt;=:creation_date_from and nvl(hcasa.creation_date,:creation_date_to+1)&lt;:creation_date_to+1) or (nvl(hcp1.creation_date,:creation_date_from-1)&gt;=:creation_date_from and nvl(hcp1.creation_date,:creation_date_to+1)&lt;:creation_date_to+1) or (nvl(hcp2.creation_date,:creation_date_from-1)&gt;=:creation_date_from and nvl(hcp2.creation_date,:creation_date_to+1)&lt;:creation_date_to+1))</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>last_day(:$flex$.creation_date_from)</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Creation Date To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>15</SORT_ORDER>
    <DISPLAY_SEQUENCE>140</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>((hp.last_update_date&gt;=:last_update_date_from and hp.last_update_date&lt;:last_update_date_to+1) or
(hca.last_update_date&gt;=:last_update_date_from and hca.last_update_date&lt;:last_update_date_to+1) or
(nvl(hcasa.last_update_date,:last_update_date_from-1)&gt;=:last_update_date_from and nvl(hcasa.last_update_date,:last_update_date_to+1)&lt;:last_update_date_to+1) or
(nvl(hcp1.last_update_date,:last_update_date_from-1)&gt;=:last_update_date_from and nvl(hcp1.last_update_date,:last_update_date_to+1)&lt;:last_update_date_to+1) or
(nvl(hcp2.last_update_date,:last_update_date_from-1)&gt;=:last_update_date_from and nvl(hcp2.last_update_date,:last_update_date_to+1)&lt;:last_update_date_to+1))</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Last Update Date From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>16</SORT_ORDER>
    <DISPLAY_SEQUENCE>150</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>((hp.last_update_date&gt;=:last_update_date_from and hp.last_update_date&lt;:last_update_date_to+1) or
(hca.last_update_date&gt;=:last_update_date_from and hca.last_update_date&lt;:last_update_date_to+1) or
(nvl(hcasa.last_update_date,:last_update_date_from-1)&gt;=:last_update_date_from and nvl(hcasa.last_update_date,:last_update_date_to+1)&lt;:last_update_date_to+1) or
(nvl(hcp1.last_update_date,:last_update_date_from-1)&gt;=:last_update_date_from and nvl(hcp1.last_update_date,:last_update_date_to+1)&lt;:last_update_date_to+1) or
(nvl(hcp2.last_update_date,:last_update_date_from-1)&gt;=:last_update_date_from and nvl(hcp2.last_update_date,:last_update_date_to+1)&lt;:last_update_date_to+1))</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>last_day(:$flex$.last_update_date_from)</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Last Update 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>
