<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: AP Supplier -->
 <LOVS_ROW>
  <GUID>B9847D20A0E4742FE0538931640A6379</GUID>
  <LOV_NAME>AP Supplier</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <FILTER_BEFORE_DISPLAY>Y</FILTER_BEFORE_DISPLAY>
  <LOV_QUERY>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>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
</LOVS>
<REPORTS>
<!-- loader xml for Enginatics Blitz Report: Audit Supplier Site Bank A/C Changes -->
 <REPORTS_ROW>
  <GUID>A7B6DE1071BD453EE053B46B63582631</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>select 
  asa.vendor_name             supplier
, assa.vendor_site_code       vendor_site_code
, NVL( (select ieba.bank_account_num
        from iby_ext_bank_accounts ieba
        where ieba.ext_bank_account_id = ieba_a.ext_bank_account_id
       )
     ,
       ( select ieba_a2.bank_account_num
         from   iby_ext_bank_accounts_a ieba_a2
         where  ieba_a2.ext_bank_account_id = ieba_a.ext_bank_account_id
         and    ieba_a2.audit_transaction_type = &apos;D&apos;
       )
     )                        bank_acc
, asa.segment1                supp_num
, &apos;Bank Account&apos;              mod_type
, case ieba_ac1.audit_transaction_type
  when &apos;I&apos; then &apos;Insert&apos;
  when &apos;U&apos; then &apos;Update&apos;
  when &apos;D&apos; then &apos;Delete&apos;
  when &apos;C&apos; then &apos;Current&apos;
           else ieba_ac1.audit_transaction_type
  end                         change_type
--
, case when ieba_a.bank_account_num is null
        and nvl(SUBSTR(ieba_a.audit_true_nulls,2,1),&apos;N&apos;) = &apos;N&apos;
  then NULL
  else ieba_a.bank_account_num
  end                         old_bank_acc_num
, case ieba_ac1.audit_transaction_type
  when &apos;D&apos; then null
  when &apos;I&apos; then ieba_ac1.bank_account_num
  else case when ieba_a.bank_account_num is null
             and nvl(SUBSTR(ieba_a.audit_true_nulls,2,1),&apos;N&apos;) = &apos;N&apos;
            then null
            else ieba_ac1.bank_account_num
       end
  end                         new_bank_acc_num
--
, case when ieba_a.bank_account_name is null
        and nvl(SUBSTR(ieba_a.audit_true_nulls,3,1),&apos;N&apos;) = &apos;N&apos;
  then NULL
  else ieba_a.bank_account_name
  end                         old_bank_acc_nam
, case ieba_ac1.audit_transaction_type
  when &apos;D&apos; then null
  when &apos;I&apos; then ieba_ac1.bank_account_name
  else case when ieba_a.bank_account_name is null
             and nvl(SUBSTR(ieba_a.audit_true_nulls,3,1),&apos;N&apos;) = &apos;N&apos;
            then null
            else ieba_ac1.bank_account_name
       end
  end                         new_bank_acc_nam
--
, ( select coalesce(papf.full_name,fu.description,fu.user_name)
    from fnd_user fu
       , per_all_people_f papf
    where user_name = ieba_ac1.audit_user_name
    and   fu.employee_id = papf.person_id (+)
    and TRUNC(sysdate) between papf.effective_start_date (+)
                           and papf.effective_end_date (+)
  )                           bank_mod_by
, ieba_ac1.audit_timestamp
, ieba_ac1.row_key
from
  ap_suppliers              asa
, ap_supplier_sites_all     assa
, iby_external_payees_all   iepa
, iby_pmt_instr_uses_all    ipiua
, iby_ext_bank_accounts_a   ieba_a
, iby_ext_bank_accounts_ac1 ieba_ac1
where 1=1
and   asa.vendor_id (+)                 = assa.vendor_id
and   assa.vendor_site_id (+)           = iepa.supplier_site_id
and   iepa.ext_payee_id (+)             = ipiua.ext_pmt_party_id
and   ipiua.instrument_id (+)           = ieba_a.ext_bank_account_id
and   ieba_a.row_key                    = ieba_ac1.row_key
--and   asa.segment1                      = 1008
--and   assa.vendor_site_code             = &apos;NEW YORK&apos;
order by
  ieba_ac1.row_key DESC</SQL_TEXT>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>Audit Supplier Site Bank A/C Changes</REPORT_NAME>
    <DESCRIPTION>Use to Audit Bank A/C changes</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
  </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>ieba_ac1.audit_timestamp&gt;=sysdate-:days</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Number</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>84</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Changed within days</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>asa.vendor_name=:supplier_name</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>AP Supplier</LOV_NAME>
    <LOV_GUID>B9847D20A0E4742FE0538931640A6379</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <FILTER_BEFORE_DISPLAY_DSP>Y</FILTER_BEFORE_DISPLAY_DSP>
    <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>
    <DEFAULT_VALUE>Office Supplies, Inc.</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Supplier</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>
