<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: JE Portuguese Receivables Taxpayer ID Exception Report- Not Supported: Reserved For Future Use -->
 <REPORTS_ROW>
  <GUID>C6E085D4708551A9E05362FB09050512</GUID>
  <SQL_TEXT>select distinct hp.PARTY_NAME , hp.PARTY_NUMBER
from    ra_cust_trx_line_gl_dist_all d,
        ra_customer_trx_lines_all l,
        ra_customer_trx_all t,
        hz_parties hp,  
        hz_cust_accounts_all hca,        
        ra_cust_trx_types_all rtt,
        zx_party_tax_profile ptp,
        zx_rates_b tax 
where (d.gl_posted_date is not null OR rtt.post_to_gl = &apos;N&apos;)
and upper(rtt.type) in (&apos;INV&apos;,&apos;CM&apos;,&apos;DM&apos;)
and hca.party_id = hp.party_id
and t.complete_flag = &apos;Y&apos;
and d.customer_trx_line_id = l.customer_trx_line_id
and l.customer_trx_id = t.customer_trx_id
and t.bill_to_customer_id = hca.cust_account_id
and rtt.cust_trx_type_id = t.cust_trx_type_id
and nvl(upper(substr(tax.tax_rate_code,1,2)),&apos;EX&apos;) not in  (&apos;ND&apos;,&apos;EX&apos;) 
and l.vat_tax_id = tax.tax_rate_id (+)
and ptp.PARTY_TAX_PROFILE_ID = tax.content_owner_id
and ptp.party_type_code = &apos;OU&apos;
and ptp.party_id = t.org_id
and     t.legal_entity_id = :P_LEGAL_ENTITY_ID
and     t.set_of_books_id = nvl(:P_SET_OF_BOOKS_ID,t.set_of_books_id)
and    (:P_BALANCING_SEGMENT IS NULL
           OR
          (:P_BALANCING_SEGMENT IS NOT NULL
            AND EXISTS (SELECT 1 FROM GL_CODE_COMBINATIONS 
                                 WHERE code_combination_id = d.code_combination_id
                                 AND chart_of_accounts_id = :P_CHART_OF_ACCT
                                 AND &amp;P_BAL_SEG_NAME)))
and not exists (select &apos;X&apos;
                        from ra_customer_trx_lines tl,
                             zx_party_tax_profile ptp,
                             zx_rates_b tax1              
                         where tl.vat_tax_id = tax1.tax_rate_id (+)
                         and ptp.PARTY_TAX_PROFILE_ID = tax1.content_owner_id
                         and ptp.party_type_code = &apos;OU&apos;
                         and ptp.party_id = tl.org_id
                         and tl.line_type = &apos;TAX&apos;
                         and nvl(upper(substr(tax1.tax_rate_code,1,2)),&apos;EX&apos;) in  (&apos;ND&apos;,&apos;EX&apos;)
                         and l.customer_trx_line_id = tl.link_to_cust_trx_line_id
                         and tl.customer_trx_id = l.customer_trx_id
                         and not exists (select &apos;X&apos;
                                                 from ra_customer_trx_lines tl1,
                                                      zx_party_tax_profile ptp,
                                                      zx_rates_b tax2          
                                                 where tl1.vat_tax_id = tax2.tax_rate_id (+)
                                                 and ptp.PARTY_TAX_PROFILE_ID = tax2.content_owner_id
                                                 and ptp.party_type_code = &apos;OU&apos;
                                                 and ptp.party_id = tl1.org_id
                                                 and tl1.line_type = &apos;TAX&apos;  
                                                 and nvl(upper(substr(tax2.tax_rate_code,1,2)) ,&apos;EX&apos;) not in (&apos;ND&apos;,&apos;EX&apos;)
                                                 and l.customer_trx_line_id = tl1.link_to_cust_trx_line_id
                                                 and tl1.customer_trx_id = l.customer_trx_id)) 
and hp.jgzz_fiscal_code is null
group by hp.party_name, hp.party_number         
order by hp.party_name, hp.party_number
</SQL_TEXT>
  <DISABLED>Y</DISABLED>
  <XDO_APPLICATION_SHORT_NAME>JE</XDO_APPLICATION_SHORT_NAME>
  <XDO_DATA_SOURCE_CODE>JEPTARER_XML</XDO_DATA_SOURCE_CODE>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>JE Portuguese Receivables Taxpayer ID Exception Report- Not Supported: Reserved For Future Use</REPORT_NAME>
    <DESCRIPTION>Imported from BI Publisher
Description: Receivables Taxpayer ID Exception Report
Application: European Localizations
Source: Portuguese Receivables Taxpayer ID Exception Report (XML) - Not Supported: Reserved For Future Use
Short Name: JEPTARER_XML
DB package: JE_JEPTARER_XMLP_PKG</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_bal_seg_name</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_bal_seg_name</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_balancing_segment</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_chart_of_acct</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_conc_request_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_legal_entity_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_set_of_books_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:place_coa_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:place_funct_curr</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:place_rep_title</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:place_sob_name</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>-30</DISPLAY_SEQUENCE>
    <ANCHOR>:p_chart_of_acct</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>JG_ZZ_VAT_COA_ID</LOV_NAME>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
chart_of_accounts_id id,
chart_of_accounts_id value,
null description
from
gl_sets_of_books
where set_of_books_id=fnd_profile.value(&apos;GL_SET_OF_BKS_ID&apos;)
order by value,description</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select chart_of_accounts_id from GL_LEDGERS WHERE LEDGER_ID =:$flex$.ledger</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Chart of Account</PARAMETER_NAME>
      <DESCRIPTION>Chart of Account ID</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>2</SORT_ORDER>
    <DISPLAY_SEQUENCE>-20</DISPLAY_SEQUENCE>
    <ANCHOR>:p_value_set</ANCHOR>
    <PARAMETER_TYPE_DSP>Number</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>SELECT s.FLEX_VALUE_SET_ID FROM fnd_id_flex_segments s, fnd_segment_attribute_values sav, fnd_segment_attribute_types sat WHERE  s.application_id = 101 AND s.id_flex_code = &apos;GL#&apos; AND s.id_flex_num = :$flex$.chart_of_account AND s.enabled_flag = &apos;Y&apos; AND s.application_column_name = sav.application_column_name AND sav.application_id = 101 AND sav.id_flex_code = &apos;GL#&apos; AND sav.id_flex_num = :$flex$.chart_of_account AND sav.attribute_value = &apos;Y&apos; AND sav.segment_attribute_type = sat.segment_attribute_type AND sat.application_id = 101 AND sat.id_flex_code = &apos;GL#&apos; AND sat.unique_flag = &apos;Y&apos; AND sat.segment_attribute_type = &apos;GL_BALANCING&apos;</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>FND_NUMBER</PARAMETER_NAME>
      <DESCRIPTION>Dummy</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>3</SORT_ORDER>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <ANCHOR>:p_legal_entity_id</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>XLE_FIRSTPARTY</LOV_NAME>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
legal_entity_id id,
name value,
legal_entity_identifier description
from
xle_entity_profiles
where transacting_entity_flag=&apos;Y&apos;
order by value,description</LOV_QUERY_DSP>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Legal Entity</PARAMETER_NAME>
      <DESCRIPTION>Legal Entity ID</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>4</SORT_ORDER>
    <DISPLAY_SEQUENCE>20</DISPLAY_SEQUENCE>
    <ANCHOR>:p_set_of_books_id</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>JGZZ_SRS_LEDGER_NAME</LOV_NAME>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
l.ledger_id id,
l.name value,
l.description description
from
gl_access_set_ledgers ac,gl_ledgers_public_v l
where ac.access_set_id=fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;)
and l.ledger_id=ac.ledger_id
order by name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Ledger</PARAMETER_NAME>
      <DESCRIPTION>Ledger ID</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>5</SORT_ORDER>
    <DISPLAY_SEQUENCE>30</DISPLAY_SEQUENCE>
    <ANCHOR>:p_balancing_segment</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>JE_ZZ_VAT_BALANCING_SEGMENT</LOV_NAME>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
flex_value id,
flex_value value,
null description
from
fnd_flex_values_vl
where
flex_value_set_id=:$flex$.fnd_number
and nvl(enabled_flag,&apos;N&apos;)=&apos;Y&apos;
and nvl(summary_flag,&apos;N&apos;)=&apos;N&apos;
and trunc(sysdate) between trunc(nvl(start_date_active,sysdate)) and trunc(nvl(end_date_active,sysdate))
order by flex_value</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Balancing Segment</PARAMETER_NAME>
      <DESCRIPTION>Balancing Segment Value</DESCRIPTION>
     </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>
