<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: ZX Tax Accounts -->
 <REPORTS_ROW>
  <GUID>B65D13D5CBECB723E0530100007F68F5</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>select
decode(za.tax_account_entity_code,&apos;TAXES&apos;,&apos;Tax&apos;,&apos;JURISDICTION&apos;,&apos;Jurisdiction&apos;,&apos;RATES&apos;,&apos;Rate&apos;) setup_level,
ftv.territory_short_name country,
coalesce(zjv.tax_regime_code,zrv.tax_regime_code,zrgv.tax_regime_code) tax_regime_code,
zrgv.tax_regime_name,
coalesce(zjv.tax,zrv.tax,ztv.tax) tax,
ztv.tax_full_name tax_name,
zrv.tax_status_code,
(select zsv.tax_status_name from zx_status_vl zsv where zrv.tax_regime_code=zsv.tax_regime_code and zrv.tax=zsv.tax and zrv.tax_status_code=zsv.tax_status_code and zrv.content_owner_id=zsv.content_owner_id) tax_status_name, 
zrv.tax_rate_code,
(select zfpomv.party_name from zx_first_party_orgs_moac_v zfpomv where zrv.content_owner_id=zfpomv.party_tax_profile_id) configuration_owner,
coalesce(zjv.tax_jurisdiction_code,zrv.tax_jurisdiction_code) tax_jurisdiction_code,
coalesce(zjv.tax_jurisdiction_name,zjv2.tax_jurisdiction_name) tax_jurisdiction_name,
zjv.precedence_level,
(select hp.party_name from zx_party_tax_profile zptp, hz_parties hp where zjv.coll_tax_authority_id=zptp.party_tax_profile_id and zptp.party_id=hp.party_id) collecting_tax_authority,
(select hp.party_name from zx_party_tax_profile zptp, hz_parties hp where zjv.rep_tax_authority_id=zptp.party_tax_profile_id and zptp.party_id=hp.party_id) reporting_tax_authority,
xxen_util.meaning(zrv.rate_type_code,&apos;ZX_RATE_TYPE&apos;,0) rate_type,
zrv.percentage_rate,
xxen_util.yes(zrv.active_flag) active,
zrv.effective_from,
zrv.tax_class,
zrv.recovery_type_code,
fifsv.id_flex_structure_name chart_of_accounts,
gl.name ledger,
hou.name operating_unit,
xxen_util.concatenated_segments(za.non_rec_account_ccid) tax_expense,
xxen_util.segments_description(za.non_rec_account_ccid) tax_expense_desc,
xxen_util.concatenated_segments(za.tax_account_ccid) tax_recoverable_liability,
xxen_util.segments_description(za.tax_account_ccid) tax_recoverable_liability_desc,
xxen_util.concatenated_segments(za.interim_tax_ccid) interim_tax,
xxen_util.segments_description(za.interim_tax_ccid) interim_tax_desc,
xxen_util.concatenated_segments(za.finchrg_non_rec_tax_ccid) finance_charge_tax_liability,
xxen_util.segments_description(za.finchrg_non_rec_tax_ccid) finance_charge_tax_liability_d,
xxen_util.concatenated_segments(za.edisc_non_rec_tax_ccid) earned_discounts_non_rec,
xxen_util.segments_description(za.edisc_non_rec_tax_ccid) earned_discounts_non_rec_desc,
xxen_util.concatenated_segments(za.unedisc_non_rec_tax_ccid) unearned_discounts_non_rec,
xxen_util.segments_description(za.unedisc_non_rec_tax_ccid) unearned_discounts_non_rec_dsc,
xxen_util.concatenated_segments(za.adj_non_rec_tax_ccid) adjustment_non_rec,
xxen_util.segments_description(za.adj_non_rec_tax_ccid) adjustment_non_rec_desc,
xxen_util.concatenated_segments(za.edisc_ccid) earned_discounts,
xxen_util.segments_description(za.edisc_ccid) earned_discounts_desc,
xxen_util.concatenated_segments(za.unedisc_ccid) unearned_discounts,
xxen_util.segments_description(za.unedisc_ccid) unearned_discounts_desc,
xxen_util.concatenated_segments(za.adj_ccid) adjustment,
xxen_util.segments_description(za.adj_ccid) adjustment_desc,
xxen_util.concatenated_segments(za.finchrg_ccid) finance_charges,
xxen_util.segments_description(za.finchrg_ccid) finance_charges_desc,
xxen_util.user_name(za.created_by) created_by,
xxen_util.client_time(za.creation_date) creation_date,
xxen_util.user_name(za.last_updated_by) last_updated_by,
xxen_util.client_time(za.last_update_date) last_update_date,
za.tax_account_id,
za.tax_account_entity_id
from
zx_accounts za,
hr_operating_units hou,
gl_ledgers gl,
fnd_id_flex_structures_vl fifsv,
zx_taxes_vl ztv,
zx_rates_vl zrv,
zx_jurisdictions_vl zjv,
zx_jurisdictions_vl zjv2,
zx_regimes_vl zrgv,
fnd_territories_vl ftv
where
1=1 and
za.internal_organization_id=hou.organization_id and
za.ledger_id=gl.ledger_id and
gl.chart_of_accounts_id=fifsv.id_flex_num and
fifsv.application_id=101 and
fifsv.id_flex_code=&apos;GL#&apos; and
decode(za.tax_account_entity_code,&apos;JURISDICTION&apos;,za.tax_account_entity_id)=zjv.tax_jurisdiction_id(+) and
decode(za.tax_account_entity_code,&apos;RATES&apos;,za.tax_account_entity_id)=zrv.tax_rate_id(+) and
coalesce(zrv.tax_regime_code,ztv.tax_regime_code)=zrgv.tax_regime_code(+) and
zrgv.country_code=ftv.territory_code(+) and
zrv.tax_regime_code=zjv2.tax_regime_code(+) and
zrv.tax=zjv2.tax(+) and
zrv.tax_jurisdiction_code=zjv2.tax_jurisdiction_code(+) and
(
za.tax_account_entity_code=&apos;TAXES&apos; and za.tax_account_entity_id=ztv.tax_id or
za.tax_account_entity_code=&apos;JURISDICTION&apos; and zjv.tax_regime_code=ztv.tax_regime_code and zjv.tax=ztv.tax and ztv.content_owner_id=-99 or
za.tax_account_entity_code=&apos;RATES&apos; and zrv.tax_regime_code=ztv.tax_regime_code and zrv.tax=ztv.tax and zrv.content_owner_id=ztv.content_owner_id
)
order by
decode(za.tax_account_entity_code,&apos;TAXES&apos;,1,&apos;JURISDICTION&apos;,2,&apos;RATES&apos;,3),
ftv.territory_short_name,
tax_regime_code,
tax,
zrv.tax_status_code, 
zrv.tax_rate_code</SQL_TEXT>
  <REQUIRED_PARAMETERS>(:Ledger is not null or :Operating_Unit is not null)</REQUIRED_PARAMETERS>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>AR</LANGUAGE>
    <REPORT_NAME>ZX Tax Accounts</REPORT_NAME>
    <DESCRIPTION>تكوين حساب ضريبة الأعمال الإلكترونية لجميع دفاتر الأستاذ ووحدات التشغيل ، والإعداد على مستوى الضريبة أو الولاية القضائية أو السعر</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>D</LANGUAGE>
    <REPORT_NAME>ZX Tax Accounts</REPORT_NAME>
    <DESCRIPTION>E-Business-Steuerkontenkonfiguration für alle Ledger und operativen Einheiten, Einrichtung auf Steuer-, Gerichtsbarkeits- oder Tarifebene</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>E</LANGUAGE>
    <REPORT_NAME>ZX Tax Accounts</REPORT_NAME>
    <DESCRIPTION>Configuración de la cuenta de impuestos de E-Business para todos los libros de contabilidad y unidades operativas, configuración a nivel de impuesto, jurisdicción o tasa</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>F</LANGUAGE>
    <REPORT_NAME>ZX Tax Accounts</REPORT_NAME>
    <DESCRIPTION>Configuration du compte de taxe pour les affaires électroniques pour tous les grands livres et unités opérationnelles, configuration au niveau de la taxe, de la juridiction ou du taux</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>I</LANGUAGE>
    <REPORT_NAME>ZX Tax Accounts</REPORT_NAME>
    <DESCRIPTION>Configurazione del conto E-Business Tax per tutti i libri contabili e le unità operative, impostazione a livello di tassa, giurisdizione o aliquota</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>JA</LANGUAGE>
    <REPORT_NAME>ZX Tax Accounts</REPORT_NAME>
    <DESCRIPTION>すべての元帳とオペレーション・ユニットのための電子ビジネス税アカウント設定、税、管轄、または税率のいずれかのレベルで設定します。</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>KO</LANGUAGE>
    <REPORT_NAME>ZX Tax Accounts</REPORT_NAME>
    <DESCRIPTION>모든 원장 및 운영 단위에 대한 E-Business Tax 계정 구성, 세금, 관할 구역 또는 비율 레벨에서 설정</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>PTB</LANGUAGE>
    <REPORT_NAME>ZX Tax Accounts</REPORT_NAME>
    <DESCRIPTION>Configuração de contas de E-Business Tax para todos os ledgers e unidades operacionais, configuração no nível de imposto, jurisdição ou taxa</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>RU</LANGUAGE>
    <REPORT_NAME>ZX Tax Accounts</REPORT_NAME>
    <DESCRIPTION>Конфигурация учетной записи E-Business Tax для всех бухгалтерских книг и операционных подразделений, настройка на уровне налогов, юрисдикции или ставки</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>S</LANGUAGE>
    <REPORT_NAME>ZX Tax Accounts</REPORT_NAME>
    <DESCRIPTION>E-Business skattekontokonfiguration för alla huvudböcker och driftsenheter, installation på antingen skatte-, jurisdiktions- eller skattesatsnivå</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>TR</LANGUAGE>
    <REPORT_NAME>ZX Tax Accounts</REPORT_NAME>
    <DESCRIPTION>Tüm defterler ve işletim birimleri için E-İşletme Vergisi hesabı yapılandırması, vergi, yargı alanı veya oran düzeyinde kurulum</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>ZX Tax Accounts</REPORT_NAME>
    <DESCRIPTION>E-Business Tax account configuration for all ledgers and operating units, setup on either tax, jurisdiction or rate level</DESCRIPTION>
    <REQUIRED_PARAMETERS_MESSAGE>You must select a Ledger and/or Operating Unit</REQUIRED_PARAMETERS_MESSAGE>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>ZHS</LANGUAGE>
    <REPORT_NAME>ZX Tax Accounts</REPORT_NAME>
    <DESCRIPTION>为所有分类账和经营单位配置电子营业税账户，按税种、管辖区或税率级别进行设置。</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>Enginatics</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>R12 only</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
  </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>za.tax_account_entity_code=decode(:setup_level,&apos;Tax&apos;,&apos;TAXES&apos;,&apos;Jurisdiction&apos;,&apos;JURISDICTION&apos;,&apos;Rate&apos;,&apos;RATES&apos;)</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select &apos;Tax&apos; value, null description from dual union all
select &apos;Jurisdiction&apos; value, null description from dual union all
select &apos;Rate&apos; value, null description from dual</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Setup Level</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>2</SORT_ORDER>
    <DISPLAY_SEQUENCE>30</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>ftv.territory_short_name=:country</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>US</LANGUAGE>
      <PARAMETER_NAME>Country</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>3</SORT_ORDER>
    <DISPLAY_SEQUENCE>40</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gl.name=:ledger and 
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)</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>GL Ledger</LOV_NAME>
    <LOV_GUID>8E2FF36EDEB879D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
gl.name value,
fifsv.id_flex_structure_name||&apos;: &apos;||decode(gl.ledger_category_code,&apos;NONE&apos;,xxen_util.meaning(gl.object_type_code,&apos;LEDGERS&apos;,101),xxen_util.meaning(gl.ledger_category_code,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101))||&apos;: &apos;||gl.description description
from
gl_ledgers gl,
fnd_id_flex_structures_vl fifsv
where
(:$flex$.ledger_category is null or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;)) and
(:$flex$.chart_of_accounts is null or xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos;) and
gl.ledger_id in (select xroa.id from xxen_report_org_access xroa where xroa.access_type=&apos;LEDGER&apos;) and
gl.chart_of_accounts_id=fifsv.id_flex_num and
fifsv.id_flex_code=&apos;GL#&apos; and
fifsv.application_id=101
order by
fifsv.id_flex_structure_name,
decode(gl.ledger_category_code,&apos;PRIMARY&apos;,1,&apos;SECONDARY&apos;,2,&apos;ALC&apos;,3,&apos;NONE&apos;,4),
gl.name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Ledger</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>4</SORT_ORDER>
    <DISPLAY_SEQUENCE>50</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>hou.name=:operating_unit</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>HR Operating Unit</LOV_NAME>
    <LOV_GUID>8E2FF36EDEB979D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
hou.name value,
null description
from
hr_operating_units hou
where
sysdate between hou.date_from and nvl(hou.date_to,sysdate) and
(:$flex$.ledger is null or hou.set_of_books_id in (select gl.ledger_id from gl_ledgers gl where xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos;)) and
hou.organization_id in (select xroa.id from xxen_report_org_access xroa where xroa.access_type=&apos;OU&apos;)
order by
hou.name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Operating Unit</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>
