<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: AR Period -->
 <LOVS_ROW>
  <GUID>8E2FF36EDEAF79D2E0530100007F1FF2</GUID>
  <LOV_NAME>AR Period</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>select
gps.period_name value,
xxen_util.meaning(gps.closing_status,&apos;CLOSING_STATUS&apos;,222)||&apos;: &apos;||gps.start_date||&apos; - &apos;||gps.end_date description
from
gl_period_statuses gps
where
gps.ledger_id=
(
select
asp.set_of_books_id 
from
ar_system_parameters asp
where
(:$flex$.ledger is null or asp.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 
(:$flex$.operating_unit is null or asp.set_of_books_id in (select hou.set_of_books_id from hr_operating_units hou where xxen_util.contains(:$flex$.operating_unit,hou.name)=&apos;Y&apos;)) and 
rownum=1
) and
gps.start_date&lt;=sysdate+400 and
gps.application_id=222
order by
gps.start_date desc</LOV_QUERY>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>AR</LANGUAGE>
    <DESCRIPTION>فترة AR السابقة لدفتر الأستاذ الحالي لتسجيل الدخول</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>D</LANGUAGE>
    <DESCRIPTION>Vergangene AR-Periode des aktuellen Login-Ledgers</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>E</LANGUAGE>
    <DESCRIPTION>Periodo AR pasado del libro de registro actual</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>F</LANGUAGE>
    <DESCRIPTION>Période AR passée du registre de connexion actuel</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>I</LANGUAGE>
    <DESCRIPTION>Periodo AR passato del libro mastro del login corrente</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>JA</LANGUAGE>
    <DESCRIPTION>現在のログイン帳の過去のAR期間</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>KO</LANGUAGE>
    <DESCRIPTION>현재 로그인 원장의 과거 AR 기간</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>PTB</LANGUAGE>
    <DESCRIPTION>Período AR passado do registro de login atual</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>RU</LANGUAGE>
    <DESCRIPTION>Прошедший период АР текущей регистрационной книги</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>S</LANGUAGE>
    <DESCRIPTION>Senaste AR-perioden för den aktuella inloggningsboken</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>TR</LANGUAGE>
    <DESCRIPTION>Mevcut giriş defterinin geçmiş AR dönemi</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <DESCRIPTION>Past AR period of the current login ledger</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>ZHS</LANGUAGE>
    <DESCRIPTION>当前登录分类账的过去AR期</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
<!-- loader xml for Enginatics Blitz Report lov: AR TRX Interface Context -->
 <LOVS_ROW>
  <GUID>8E2FF36EDE8179D2E0530100007F1FF2</GUID>
  <LOV_NAME>AR TRX Interface Context</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>select &apos;ORDER ENTRY&apos; value, &apos;Order Entry&apos; description from dual union all
select &apos;PA INVOICES&apos; value, &apos;Pa Invoices&apos; description from dual union all
select &apos;PA Internal Invoices&apos; value, &apos;Pa Internal Invoices&apos; description from dual union all
select &apos;PROJECTS INVOICES&apos; value, &apos;Projects Invoices&apos; description from dual union all
select &apos;OKL_CONTRACTS&apos; value, &apos;Okl Contracts&apos; description from dual union all
select &apos;OKS CONTRACTS&apos; value, &apos;Oks Contracts&apos; description from dual union all
select &apos;LOANS&apos; value, &apos;Loans&apos; description from dual union all
select &apos;CLAIM&apos; value, &apos;Claim&apos; description from dual union all
select &apos;INTERCOMPANY&apos; value, &apos;Intercompany&apos; description from dual union all
select &apos;GLOBAL_PROCUREMENT&apos; value, &apos;Global Procurement&apos; description from dual union all
select &apos;SERVICE&apos; value, &apos;Service&apos; description from dual union all
select &apos;OTHER&apos; value, &apos;All other transactions not in above categories&apos; description from dual</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 Transaction Class -->
 <LOVS_ROW>
  <GUID>8E2FF36EDE8079D2E0530100007F1FF2</GUID>
  <LOV_NAME>AR Transaction Class</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>select
flvv.meaning value,
flvv.lookup_code description
from
fnd_lookup_values_vl flvv
where
flvv.lookup_type=&apos;INV/CM/ADJ&apos; and
flvv.view_application_id=222 and
flvv.security_group_id=0
order by
flvv.meaning</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 Transaction Type -->
 <LOVS_ROW>
  <GUID>8E2FF36EDE9A79D2E0530100007F1FF2</GUID>
  <LOV_NAME>AR Transaction Type</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>select
rctta.name value,
nvl(flvv.meaning,rctta.type)||&apos;: &apos;||haouv.name description
from
hr_all_organization_units_vl haouv,
ra_cust_trx_types_all rctta,
fnd_lookup_values_vl flvv
where
(:$flex$.operating_unit is null or xxen_util.contains(:$flex$.operating_unit,haouv.name)=&apos;Y&apos;) and
haouv.organization_id=rctta.org_id and
rctta.type=flvv.lookup_code(+) and
flvv.lookup_type(+)=&apos;INV/CM/ADJ&apos; and
flvv.view_application_id(+)=222 and
flvv.security_group_id(+)=0
order by
rctta.name,
haouv.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: GL Ledger -->
 <LOVS_ROW>
  <GUID>8E2FF36EDEB879D2E0530100007F1FF2</GUID>
  <LOV_NAME>GL Ledger</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>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 nvl(glsnav.ledger_id,gasna.ledger_id) from gl_access_set_norm_assign gasna, gl_ledger_set_norm_assign_v glsnav where gasna.access_set_id=fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;) and gasna.ledger_id=glsnav.ledger_set_id(+)) 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>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>AR</LANGUAGE>
    <DESCRIPTION>دفاتر الأستاذ المقيدة بمجموعة الوصول ، المحددة بواسطة قيمة الملف الشخصي &quot;مجموعة الوصول إلى بيانات GL&quot; لمسؤولية تسجيل الدخول الحالية</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>D</LANGUAGE>
    <DESCRIPTION>Ledger, die durch das Zugriffsset eingeschränkt sind, definiert durch den Profilwert &apos;GL Data Access Set&apos; der aktuellen Anmeldeverantwortung</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>E</LANGUAGE>
    <DESCRIPTION>Libros restringidos por el conjunto de acceso, definido por el valor del perfil &quot;Conjunto de acceso a datos GL&quot; de la responsabilidad de inicio de sesión actual</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>F</LANGUAGE>
    <DESCRIPTION>Grands livres limités par un ensemble d&apos;accès, défini par la valeur du profil &quot;GL Data Access Set&quot; de la responsabilité de connexion actuelle</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>I</LANGUAGE>
    <DESCRIPTION>Libri mastri limitati dal set di accesso, definito dal valore del profilo &apos;GL Data Access Set&apos; della responsabilità di login corrente</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>JA</LANGUAGE>
    <DESCRIPTION>現在のログイン責任者のプロファイル値&apos;GL Data Access Set&apos;によって定義されたアクセスセットによって制限された元帳</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>KO</LANGUAGE>
    <DESCRIPTION>현재 로그인 권한의 프로파일 값 &apos;GL 데이터 액세스 세트&apos;로 정의 된 액세스 세트로 제한되는 원장</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>PTB</LANGUAGE>
    <DESCRIPTION>Ledgers restritos pelo conjunto de acesso, definido pelo valor do perfil &apos;GL Data Access Set&apos; da atual responsabilidade de login</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>RU</LANGUAGE>
    <DESCRIPTION>Леджеры, ограниченные набором доступа, определяемые значением профиля &quot;GL Data Access Set&quot; текущей ответственности за вход в систему</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>S</LANGUAGE>
    <DESCRIPTION>Ledgers begränsade av åtkomstuppsättning, definierade av profilvärde &apos;GL Data Access Set&apos; för det aktuella inloggningsansvaret</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>TR</LANGUAGE>
    <DESCRIPTION>Mevcut oturum açma sorumluluğunun profil değeri &apos;GL Veri Erişim Kümesi&apos; ile tanımlanan erişim kümesiyle kısıtlanmış defterler</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <DESCRIPTION>Ledgers restricted by access set, defined by profile value &apos;GL Data Access Set&apos; of the current login responsibility</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>ZHS</LANGUAGE>
    <DESCRIPTION>由访问集限制的分类账，由当前登录责任的配置文件值 &quot;GL数据访问集 &quot;定义。</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
<!-- loader xml for Enginatics Blitz Report lov: HR Operating Unit -->
 <LOVS_ROW>
  <GUID>8E2FF36EDEB979D2E0530100007F1FF2</GUID>
  <LOV_NAME>HR Operating Unit</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>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 mgoat.organization_id from mo_glob_org_access_tmp mgoat union select fnd_global.org_id from dual where fnd_release.major_version=11)
order by
hou.name</LOV_QUERY>
  <VERSION_COMMENTS>Fixed where clause duplication</VERSION_COMMENTS>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>AR</LANGUAGE>
    <DESCRIPTION>وحدة التشغيل مقيدة بالتحكم في الوصول متعدد المنظمات (MOAC)</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>D</LANGUAGE>
    <DESCRIPTION>Bedieneinheit eingeschränkt durch Multi Org Access Control (MOAC)</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>E</LANGUAGE>
    <DESCRIPTION>Unidad operativa restringida por el control de acceso multiorgánico (MOAC)</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>F</LANGUAGE>
    <DESCRIPTION>Unité opérationnelle restreinte par un contrôle d&apos;accès multi-organismes (MOAC)</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>I</LANGUAGE>
    <DESCRIPTION>Unità operativa limitata dal controllo di accesso multiorgano (MOAC)</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>JA</LANGUAGE>
    <DESCRIPTION>多機関アクセス制御(MOAC)で制限された操作ユニット</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>KO</LANGUAGE>
    <DESCRIPTION>다중 조직 액세스 제어 (MOAC)에 의해 제한되는 운영 단위</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>PTB</LANGUAGE>
    <DESCRIPTION>Unidade operacional restrita por controle de acesso multi org (MOAC)</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>RU</LANGUAGE>
    <DESCRIPTION>Операционное устройство, ограниченное мультиорганизованным контролем доступа (MOAC)</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>S</LANGUAGE>
    <DESCRIPTION>Styrenhet begränsad av multi-org access control (MOAC)</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>TR</LANGUAGE>
    <DESCRIPTION>Çoklu kuruluş erişim kontrolü (MOAC) tarafından kısıtlanan işletim birimi</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <DESCRIPTION>Operating unit restricted by multi org access control (MOAC)</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>ZHS</LANGUAGE>
    <DESCRIPTION>受多机构访问控制（MOAC）限制的操作单元。</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
</LOVS>
<REPORTS>
<!-- loader xml for Enginatics Blitz Report: RK: AR Transactions and Lines -->
 <REPORTS_ROW>
  <GUID>A97550A028FE019BE053B46B63584C34</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>select
decode(x.class,&apos;Credit Memo&apos;,2,&apos;Invoice&apos;,0) &quot;DocumentType&quot;,
null &quot;SequencialNumberVK&quot;,
null &quot;SequencialNumberAK&quot;,
x.trx_date &quot;TransactionDate&quot;,
x.invoice_number &quot;InvoiceNumber&quot;,
x.trx_number &quot;SupplierInvoiceNumber&quot;,
null &quot;LastInvoiceNumber&quot;,
null &quot;DocumentIndicator&quot;,
null &quot;OwnReference&quot;,
x.ref_invoice_num &quot;ReferenceInvoiceNumber&quot;,
x.ref_invoice_date &quot;ReferenceInvoiceDate&quot;,
null &quot;ReferenceTaxableBasis&quot;,
null &quot;ReferenceVAT&quot;,
null &quot;AutoFatturaNumber&quot;,
x.invoice_date &quot;InvoiceDate&quot;,
x.currency &quot;Currency&quot;,
null &quot;Currency2&quot;,
null &quot;Currency3&quot;,
null &quot;DocumentCurrency&quot;,
x.exchange_date &quot;ExchangeRateDate&quot;,
null &quot;Discount&quot;,
null &quot;DateOfSupply&quot;,
x.tax_rate &quot;VATCode&quot;,
null &quot;VATCodeScheme&quot;,
null &quot;VATCodeDescription&quot;,
null &quot;CreditNoteOriginalDocument&quot;,
null &quot;CreditNoteReason&quot;,
null &quot;CreditNotePeriod&quot;,
null &quot;VATDate&quot;,
null &quot;InvoiceReceiptDate&quot;,
null &quot;IncomingPostingDate&quot;,
null &quot;OutsourcingPartyType&quot;,
null &quot;OutsourcingPartyName&quot;,
null &quot;OutsourcingPartyAddress&quot;,
null &quot;OutsourcingPartyVRN&quot;,
null &quot;SupplierID&quot;,
null &quot;SupplierName&quot;,
null &quot;SupplierPrivatePersonFirstName&quot;,
null &quot;SupplierPrivatePersonLastName&quot;,
null &quot;SupplierStreet&quot;,
null &quot;SupplierHouseNumber&quot;,
null &quot;SupplierZip&quot;,
null &quot;SupplierCity&quot;,
null &quot;SupplierCountry&quot;,
null &quot;SupplierTelephone&quot;,
null &quot;SupplierFax&quot;,
null &quot;SupplierVATNumberUsed&quot;,
null &quot;SupplierCountryVATNumberUsed&quot;,
null &quot;SupplierVatNumberType&quot;,
null &quot;SupplierDeductionType&quot;,
null &quot;SupplierSpecialType&quot;,
null &quot;SupplierFiscalNumber&quot;,
null &quot;SupplierFiscalNumberIssuedBy&quot;,
null supplierfiscalrepresentativena,
null supplierfiscalrepresentativep1,
null supplierfiscalrepresentativep2,
null supplierfiscalrepresentativest,
null supplierfiscalrepresentativeho,
null supplierfiscalrepresentativezi,
null supplierfiscalrepresentativeci,
null supplierfiscalrepresentativeco,
null supplierfiscalrepresentativete,
null supplierfiscalrepresentativefa,
null supplierfiscalrepresentativeem,
null supplierfiscalrepresentativeva,
null supplierfiscalrepresentativeta,
null supplierfixedestablishmentstre,
null supplierfixedestablishmenthous,
null &quot;SupplierFixedEstablishmentZip&quot;,
null &quot;SupplierFixedEstablishmentCity&quot;,
null supplierfixedestablishmentcoun,
null supplierfixedestablishmenttele,
null &quot;SupplierFixedEstablishmentFax&quot;,
null supplierfixedestablishmentemai,
null supplieridentifierpassportnumb,
null &quot;SupplierIdentifierIdCardNumber&quot;,
null supplieridentifierresidencycer,
x.account_number &quot;CustomerID&quot;,
x.party_name &quot;CustomerName&quot;, 
null &quot;CustomerPrivatePersonFirstName&quot;,
null &quot;CustomerPrivatePersonLastName&quot;,
x.address1 &quot;CustomerStreet&quot;,
x.address2 &quot;CustomerHouseNumber&quot;,
x.postal_code &quot;CustomerZip&quot;,
x.city &quot;CustomerCity&quot;,
x.country &quot;CustomerCountry&quot;,
null &quot;CustomerTelephone&quot;,
null &quot;CustomerFax&quot;,
null &quot;CustomerVATNumberUsed&quot;,
null &quot;CustomerCountryVATNumberUsed&quot;,
null &quot;CustomerVatNumberType&quot;,
null &quot;CustomerDeductionType&quot;,
null &quot;CustomerSpecialType&quot;,
null &quot;CustomerFiscalNumber&quot;,
null &quot;CustomerFiscalNumberIssuedBy&quot;,
null customerfiscalrepresentativena,
null customerfiscalrepresentativep1,
null customerfiscalrepresentativep2,
null customerfiscalrepresentativest,
null customerfiscalrepresentativeho,
null customerfiscalrepresentativezi,
null customerfiscalrepresentativeci,
null customerfiscalrepresentativeco,
null customerfiscalrepresentativete,
null customerfiscalrepresentativefa,
null customerfiscalrepresentativeem,
null customerfiscalrepresentativeva,
null customerfiscalrepresentativeta,
null customerfixedestablishmentstre,
null customerfixedestablishmenthous,
null &quot;CustomerFixedEstablishmentZip&quot;,
null &quot;CustomerFixedEstablishmentCity&quot;,
null customerfixedestablishmentcoun,
null customerfixedestablishmenttele,
null &quot;CustomerFixedEstablishmentFax&quot;,
null customerfixedestablishmentemai,
null customeridentifierpassportnumb,
null &quot;CustomerIdentifierIdCardNumber&quot;,
null customeridentifierresidencycer,
x.description &quot;Description&quot;,
null &quot;ExemptionReason&quot;,
null &quot;ItemClassification&quot;,
abs(x.amount) &quot;TaxableBasis&quot;,
abs(nvl(x.tax_amount,0)) &quot;ValueVAT&quot;,
null &quot;SalesVATDueReverseCharge&quot;,
abs(x.amount)+abs(nvl(x.tax_amount,0)) &quot;TotalValueLine&quot;,
null &quot;AmountVATDeducted&quot;,
null &quot;AmountVATReverseCharged&quot;,
null &quot;TaxableBasisCurrency2&quot;,
null &quot;ValueVATCurrency2&quot;,
null salesvatduereversechargecurre2,
null &quot;TotalValueLineCurrency2&quot;,
null &quot;AmountVATDeductedCurrency2&quot;,
null amountvatreversechargedcurren2,
null &quot;TaxableBasisCurrency3&quot;,
null &quot;ValueVATCurrency3&quot;,
null salesvatduereversechargecurre3,
null &quot;TotalValueLineCurrency3&quot;,
null &quot;AmountVATDeductedCurrency3&quot;,
null amountvatreversechargedcurren3,
null &quot;OutOfVAT&quot;,
x.quantity &quot;Quantity&quot;,
x.uom_code &quot;Unit&quot;,
null &quot;ItemIdentifier&quot;,
x.country &quot;CountryDispatch&quot;,
x.country &quot;CountryArrival&quot;,
null &quot;ShipToCity&quot;,
null &quot;ShipToZIP&quot;,
null &quot;ShipToStreet&quot;,
null &quot;ShipToStreetNumber&quot;,
null &quot;ShipFromCity&quot;,
null &quot;ShipFromZIP&quot;,
null &quot;ShipFromStreet&quot;,
null &quot;ShipFromStreetNumber&quot;,
null &quot;CountryOperation&quot;,
null &quot;Installation&quot;,
null &quot;Transporter&quot;,
null &quot;CountryEUImportation&quot;,
null &quot;EUImporter&quot;,
null &quot;DeliveryConditions&quot;,
null &quot;PlaceOfDelivery&quot;,
null &quot;Triangulation&quot;,
null &quot;AdditionalDocumentReference&quot;,
null &quot;ReportingType&quot;,
null &quot;TransactionType&quot;,
null &quot;AdditionalTransactionType&quot;,
null &quot;IntrastatCode&quot;,
null &quot;AdditionalIntrastatCode&quot;,
null &quot;ExtrastatCode&quot;,
null &quot;AdditionalDescription&quot;,
x.quantity &quot;Quantity1&quot;,
x.uom_code &quot;Unit1&quot;,
null &quot;Quantity2&quot;,
null &quot;Unit2&quot;,
abs(x.amount)+abs(nvl(x.tax_amount,0)) &quot;CommercialValue&quot;,
null &quot;StatisticalValue&quot;,
null &quot;CommercialValueCurrency2&quot;,
null &quot;StatisticalValueCurrency2&quot;,
null &quot;CommercialValueCurrency3&quot;,
null &quot;StatisticalValueCurrency3&quot;,
null &quot;ModeOfTransport&quot;,
null &quot;ItemType&quot;,
null &quot;RegionDispatch&quot;,
null &quot;HarbourDispatch&quot;,
null &quot;RegionArrival&quot;,
null &quot;HarbourArrival&quot;,
null &quot;CountryOrigin&quot;,
null &quot;ServiceCode&quot;,
null &quot;NationalityTransportVehicle&quot;,
null &quot;AccountNumber&quot;,
null &quot;CashRegisterNumber&quot;,
null &quot;AccountNumberTaxableBasis&quot;,
null &quot;AccountNumberVAT&quot;,
null &quot;AccountNumberDeductibleVAT&quot;,
null &quot;AccountNumberNonDeductibleVAT&quot;,
null &quot;AccountNumberReversedVAT&quot;,
null &quot;RefundNatureOfItem&quot;,
null &quot;RefundDescription&quot;,
null &quot;RefundDescriptionLanguage&quot;,
null &quot;ImportDocumentNumber&quot;,
null &quot;ImportReferenceInformation&quot;,
null &quot;ScannedDocumentFileName&quot;,
null &quot;ScannedDocumentFileDescription&quot;,
null &quot;ClearingDate&quot;,
null &quot;ClearingDocumentNumber&quot;,
null &quot;ClearingDocumentAmount&quot;,
null &quot;ClearingDocumentCurrency&quot;,
null clearingdocumentaccountinforma,
null &quot;ClearingDocumentPayementMethod&quot;,
null &quot;NationalityTransportMeans&quot;,
null &quot;CountryCustomsDeclaration&quot;,
null &quot;InternalModeOfTransport&quot;,
null &quot;EUCountryDispatch&quot;,
null &quot;EUCountryArrival&quot;,
null &quot;Container&quot;,
null &quot;EORINRPSI&quot;,
null &quot;EORINRPSIAgent&quot;,
null &quot;CustomsProcedureCode&quot;,
null &quot;PreferentialTreatment&quot;,
null &quot;StatisticalProcedure&quot;
/*----
x.type,
x.reference,
x.purchase_order,
x.credited_invoice,
x.credited_invoice_line,
x.currency,
decode(x.first_line,&apos;Y&apos;,x.total_due_original) total_due_original,
decode(x.first_line,&apos;Y&apos;,x.total_payment_applied) total_payment_applied,
decode(x.first_line,&apos;Y&apos;,x.total_adjustment) total_adjustment,
decode(x.first_line,&apos;Y&apos;,x.total_credit) total_credit,
decode(x.first_line,&apos;Y&apos;,x.total_due_remaining) total_due_remaining,
decode(x.first_line,&apos;Y&apos;,x.dispute_amount) dispute_amount,
x.status,
x.payment_term,
x.invoicing_rule,
x.due_date,
x.overdue_days,
x.ship_date,
x.receipt_method,
x.payment_method,
x.instrument_number,
x.print_option,
x.first_printed_date,
x.customer_reference,
x.comments,
x.bill_to_location,
x.bill_to_address,
null ship_to_city,
null ship_to_state,
x.taxpayer_id,
x.sales_rep,
----------line---------
x.line,
x.item,
x.unit_price,
x.amount,
x.tax_rate,
x.tax_amount,
x.amount+nvl(x.tax_amount,0) amount_incl_tax,
x.category,
x.sales_order,
x.sales_order_line,
x.sales_order_date,
----------oks contracts----------
nvl(x.date_billed_from,case when x.invoicing_rule=&apos;Advance&apos; then x.billing_due_date when x.invoicing_rule=&apos;Arrears&apos; then add_months(x.billing_due_date,-x.frequency)+1 end) date_billed_from,
nvl(x.date_billed_to,case when x.invoicing_rule=&apos;Advance&apos; then add_months(x.billing_due_date,x.frequency)-1 when x.invoicing_rule=&apos;Arrears&apos; then x.billing_due_date end) date_billed_to,
x.end_read,
x.end_read_date,
x.actual,
x.result,
x.date_terminated,
x.covered_item,
x.installed_counter,
----------OKL contracts----------
x.frequency,
x.okl_stream_type,
x.billing_due_date,
round(x.first_printed_date-decode(x.class_,&apos;INV&apos;,x.billing_due_date)) contract_billing_delay,
x.operating_unit,
x.created_by,
xxen_util.client_time(x.creation_date) creation_date,
x.customer_trx_id,
x.customer_trx_line_id */
from
(
select
haouv.name operating_unit,
acia.cons_billing_number invoice_number,
rcta.trx_number,
rcta.trx_date,
apsa.trx_date invoice_date,
rcta.exchange_rate,
rcta.exchange_date,
rcta.exchange_rate_type,
xxen_util.meaning(apsa.class,&apos;INV/CM/ADJ&apos;,222)||case when apsa.class=&apos;CM&apos; and obcl.bill_action=&apos;TR&apos; then &apos; termination&apos; end class,
apsa.class class_,
rctta.name type,
rcta.ct_reference reference,
rcta.purchase_order,
hl.address1,
hl.address2,
hl.postal_code,
hl.city,
hl.country,
(
select
nvl2(acia0.cons_billing_number,acia0.cons_billing_number||&apos; - &apos;,null)||rcta0.trx_number credited_invoice
from
ra_customer_trx_all rcta0,
ar_cons_inv_trx_all acita0,
ar_cons_inv_all acia0
where
rcta.previous_customer_trx_id=rcta0.customer_trx_id and
rcta0.customer_trx_id=acita0.customer_trx_id(+) and
acita0.cons_inv_id=acia0.cons_inv_id(+)
) credited_invoice,
(select rcta0.trx_number from ra_customer_trx_all rcta0 where rcta.previous_customer_trx_id=rcta0.customer_trx_id) ref_invoice_num,
(select rcta0.trx_date from ra_customer_trx_all rcta0 where rcta.previous_customer_trx_id=rcta0.customer_trx_id) ref_invoice_date,
(select rctla0.line_number from ra_customer_trx_lines_all rctla0 where rctla.previous_customer_trx_line_id=rctla0.customer_trx_line_id) credited_invoice_line,
hca.account_number,
hp.party_name,
hcsua.location bill_to_location,
hz_format_pub.format_address(hps.location_id,null,null,&apos; , &apos;) bill_to_address,
hp.jgzz_fiscal_code taxpayer_id,
apsa.invoice_currency_code currency,
apsa.amount_due_original total_due_original,
apsa.amount_applied total_payment_applied,
apsa.amount_adjusted total_adjustment,
apsa.amount_credited total_credit,
apsa.amount_due_remaining total_due_remaining,
case when rctta.accounting_affect_flag=&apos;Y&apos; and apsa.amount_in_dispute&lt;&gt;0 then apsa.amount_in_dispute end dispute_amount,
xxen_util.meaning(apsa.status,&apos;PAYMENT_SCHEDULE_STATUS&apos;,222) status,
rtt.name payment_term,
decode(rcta.invoicing_rule_id,-3,&apos;Arrears&apos;,&apos;Advance&apos;) invoicing_rule,
apsa.due_date,
case when apsa.class in (&apos;INV&apos;,&apos;DM&apos;) and apsa.status=&apos;OP&apos; then greatest(trunc(sysdate)-apsa.due_date,0) end overdue_days,
rcta.ship_date_actual ship_date,
arm.name receipt_method,
ifpct.payment_channel_name payment_method,
decode(ipiua.instrument_type,&apos;BANKACCOUNT&apos;,ieba.masked_bank_account_num,&apos;CREDITCARD&apos;,ic.masked_cc_number) instrument_number,
xxen_util.meaning(rcta.printing_option,&apos;INVOICE_PRINT_OPTIONS&apos;,222) print_option,
rcta.printing_original_date first_printed_date,
rcta.customer_reference,
rcta.comments,
jrret.resource_name sales_rep,
----------line----------
decode(rctla.line_type,&apos;FREIGHT&apos;,null,rctla.line_number) line,
nvl((select msibk.concatenated_segments from mtl_system_items_b_kfv msibk where rctla.inventory_item_id=msibk.inventory_item_id and nvl(rctla.warehouse_id,ospa.parameter_value)=msibk.organization_id),xxen_util.meaning(rctla.line_type,&apos;STD_LINE_TYPE&apos;,222)) item,
rctla.description,
muomt.unit_of_measure_tl uom_code,
nvl(rctla.quantity_credited,rctla.quantity_invoiced) quantity,
rctla.unit_selling_price unit_price,
rctla.extended_amount amount,
(select rctla2.tax_rate from ra_customer_trx_lines_all rctla2 where rctla.customer_trx_line_id=rctla2.link_to_cust_trx_line_id and rctla2.line_type=&apos;TAX&apos; and rownum=1) tax_rate,
(select sum(rctla2.extended_amount) from ra_customer_trx_lines_all rctla2 where rctla.customer_trx_line_id=rctla2.link_to_cust_trx_line_id and rctla2.line_type=&apos;TAX&apos;) tax_amount,
nvl(rctla.interface_line_context,rbsa.name) category,
nvl(rctla.sales_order,rctla.interface_line_attribute1) sales_order,
rctla.sales_order_line,
rctla.sales_order_date,
(select rctlgda.code_combination_id from ra_cust_trx_line_gl_dist_all rctlgda where rctla.customer_trx_line_id=rctlgda.customer_trx_line_id and rctlgda.account_class=&apos;REV&apos; and rctlgda.account_set_flag=&apos;N&apos; and rctlgda.gl_date is not null and rctlgda.amount is not null and rctlgda.acctd_amount is not null and nvl(rctlgda.ccid_change_flag,&apos;Y&apos;)=&apos;Y&apos; and rownum=1) revenue_account_id,
xxen_util.user_name(rctla.created_by) created_by,
rctla.creation_date,
rctla.customer_trx_id,
rctla.customer_trx_line_id,
decode(rctla.customer_trx_line_id,min(rctla.customer_trx_line_id) keep (dense_rank first order by decode(rctla.line_type,&apos;FREIGHT&apos;,null,rctla.line_number)) over (partition by apsa.payment_schedule_id),&apos;Y&apos;) first_line,
----------OKS contracts----------
oklb1.line_number||nvl2(oklb2.line_number,&apos;.&apos;,null)||oklb2.line_number contract_line,
okslb1.usage_type,
obsl.date_billed_from,
obsl.date_billed_to,
ccv.counter_reading end_read,
ccv.value_timestamp end_read_date,
obsld.actual,
decode(oklb2.lse_id,13,obsld.result) result,
nvl(oklb2.date_terminated,oklb.date_terminated) date_terminated,
msiv2.concatenated_segments||nvl2(msiv2.description,&apos; - &apos;||msiv2.description,null) covered_item,
cc.name installed_counter,
----------OKL contracts----------
nvl(round(months_between(obsl.date_billed_to+1,obsl.date_billed_from),2),ocasb.frequency) frequency,
ostb.code okl_stream_type,
nvl(decode(rcta.invoicing_rule_id,-3,obsl.date_billed_to+1,obsl.date_billed_from),decode(rctla.interface_line_context,&apos;OKS CONTRACTS&apos;,decode(rcta.invoicing_rule_id,-3,to_date(rctla.interface_line_attribute5,&apos;YYYY/MM/DD HH24:MI:SS&apos;)+1,to_date(rctla.interface_line_attribute4,&apos;YYYY/MM/DD HH24:MI:SS&apos;)),ose.stream_element_date)) billing_due_date,
case when rctla.interface_line_context in (&apos;OKL_CONTRACTS&apos;,&apos;OKL_INVESTOR&apos;) then rctla.interface_line_attribute1 end okl_contract_number,
nvl(
decode(oki2.jtot_object1_code,&apos;OKX_CUSTPROD&apos;,oki2.object1_id1,&apos;OKX_COUNTER&apos;,ccg.source_object_id),
(
select
oki3.object1_id1
from
okc_k_lines_b oklb2,
okc_k_lines_b oklb3,
okc_k_items oki3
where
case when oklb.lse_id in (49,53) then (select to_number(oki2.object1_id1) from okc_k_items oki2 where ocasb.kle_id=oki2.cle_id and oki2.jtot_object1_code=&apos;OKX_COVASST&apos; and rownum=1) else ocasb.kle_id end=oklb2.cle_id and
oklb2.lse_id=43 and
oklb3.lse_id=45 and
oklb2.id=oklb3.cle_id and
oklb3.id=oki3.cle_id and
oki3.jtot_object1_code=&apos;OKX_IB_ITEM&apos; and
rownum=1
)
) instance_id,
nvl(oklb2.dnz_chr_id,ocasb.khr_id) dnz_chr_id,
case when oklb.lse_id in (49,53) then oklb.cle_id else ocasb.kle_id end oklb1_id,
nvl(oklb2.lse_id,oklb.lse_id) lse_id
from
hr_all_organization_units_vl haouv,
ar_payment_schedules_all apsa,
ra_customer_trx_all rcta,
ra_customer_trx_lines_all rctla,
oe_sys_parameters_all ospa,
ra_batch_sources_all rbsa,
ra_cust_trx_types_all rctta,
ra_terms_tl rtt,
ar_cons_inv_all acia,
hz_cust_accounts hca,
hz_parties hp,
hz_cust_site_uses_all hcsua,
hz_cust_acct_sites_all hcasa,
hz_party_sites hps,
hz_locations hl,
ar_receipt_methods arm,
iby_fndcpt_pmt_chnnls_tl ifpct,
iby_fndcpt_tx_extensions ifte,
iby_pmt_instr_uses_all ipiua,
iby_creditcard ic,
iby_ext_bank_accounts ieba,
mtl_units_of_measure_tl muomt,
jtf_rs_salesreps jrs,
jtf_rs_resource_extns_tl jrret,
----------OKS contracts----------
oks_bill_txn_lines obtl,
oks_bill_cont_lines obcl,
oks_bill_sub_lines obsl,
oks_bill_sub_line_dtls obsld,
cs_counter_values ccv,
(select oki2.* from okc_k_items oki2 where oki2.jtot_object1_code in (&apos;OKX_COVITEM&apos;,&apos;OKX_CUSTPROD&apos;,&apos;OKX_COUNTER&apos;)) oki2,
okc_k_lines_b oklb2,
okc_k_lines_b oklb1,
oks_k_lines_b okslb1,
cs_counters cc,
cs_counter_groups ccg,
mtl_system_items_vl msiv2,
----------OKL contracts----------
(
select
ocasb.*,
(select decode(orb.object1_id1,&apos;A&apos;,12,&apos;S&apos;,6,&apos;Q&apos;,3,&apos;M&apos;,1) from okc_rules_b orb where orgb.id=orb.rgp_id and orb.rule_information7 is null and orb.rule_information_category=&apos;LASLL&apos; and rownum=1) frequency
from
okl_cnsld_ar_strms_b ocasb,
(select * from okc_rule_groups_b orgb where orgb.rgd_code=&apos;LALEVL&apos;) orgb
where
ocasb.kle_id=orgb.cle_id(+)
) ocasb,
okl_strm_type_b ostb,
okl_strm_elements ose,
okc_k_lines_b oklb
where
1=1 and
apsa.payment_schedule_id&gt;0 and
apsa.org_id=haouv.organization_id and
rcta.org_id=haouv.organization_id and
rctla.org_id=haouv.organization_id and
apsa.class in (&apos;INV&apos;,&apos;CB&apos;,&apos;DM&apos;,&apos;CM&apos;,&apos;GUAR&apos;,&apos;DEP&apos;,&apos;BR&apos;) and
apsa.customer_trx_id=rcta.customer_trx_id and
apsa.customer_trx_id=rctla.customer_trx_id and
rctla.line_type&lt;&gt;&apos;TAX&apos; and
apsa.org_id=ospa.org_id(+) and
ospa.parameter_code(+)=&apos;MASTER_ORGANIZATION_ID&apos; and
apsa.term_id=rtt.term_id(+) and
rtt.language(+)=userenv(&apos;lang&apos;) and
rcta.cust_trx_type_id=rctta.cust_trx_type_id(+) and
rcta.org_id=rctta.org_id(+) and
nvl2(rcta.interface_header_context,null,rcta.batch_source_id)=rbsa.batch_source_id(+) and
nvl2(rcta.interface_header_context,null,rcta.org_id)=rbsa.org_id(+) and
apsa.cons_inv_id=acia.cons_inv_id(+) and
apsa.customer_id=hca.cust_account_id(+) and
hca.party_id=hp.party_id(+) and
apsa.customer_site_use_id=hcsua.site_use_id(+) and
hcsua.cust_acct_site_id=hcasa.cust_acct_site_id(+) and
hcasa.party_site_id=hps.party_site_id(+) and
hps.location_id=hl.location_id(+) and
rcta.receipt_method_id=arm.receipt_method_id(+) and
arm.payment_channel_code=ifpct.payment_channel_code(+) and
ifpct.language(+)=userenv(&apos;lang&apos;) and
rcta.payment_trxn_extension_id=ifte.trxn_extension_id(+) and
ifte.instr_assignment_id=ipiua.instrument_payment_use_id(+) and
decode(ipiua.instrument_type,&apos;CREDITCARD&apos;,ipiua.instrument_id)=ic.instrid(+) and
decode(ipiua.instrument_type,&apos;BANKACCOUNT&apos;,ipiua.instrument_id)=ieba.ext_bank_account_id(+) and
rctla.uom_code=muomt.uom_code(+) and
muomt.language(+)=userenv(&apos;lang&apos;) and
case when rcta.primary_salesrep_id&gt;0 then rcta.primary_salesrep_id end=jrs.salesrep_id(+) and
case when rcta.primary_salesrep_id&gt;0 then rcta.org_id end=jrs.org_id(+) and
jrs.resource_id=jrret.resource_id(+) and
jrret.language(+)=userenv(&apos;lang&apos;) and
----------OKS contracts----------
decode(rctla.interface_line_context,&apos;OKS CONTRACTS&apos;,rctla.interface_line_attribute3)=obtl.bill_instance_number(+) and
obtl.bsl_id=obsl.id(+) and
obsl.bcl_id=obcl.id(+) and
obtl.bsl_id=obsld.bsl_id(+) and
obsld.ccr_id=ccv.counter_value_id(+) and
obsl.cle_id=oki2.cle_id(+) and
decode(oki2.jtot_object1_code,&apos;OKX_COVITEM&apos;,oki2.object1_id1)=msiv2.inventory_item_id(+) and
decode(oki2.jtot_object1_code,&apos;OKX_COVITEM&apos;,oki2.object1_id2)=msiv2.organization_id(+) and
decode(oki2.jtot_object1_code,&apos;OKX_COUNTER&apos;,oki2.object1_id1)=cc.counter_id(+) and
cc.counter_group_id=ccg.counter_group_id(+) and
ccg.source_object_code(+)=&apos;CP&apos; and
obsl.cle_id=oklb2.id(+) and
oklb2.cle_id=oklb1.id(+) and
oklb2.cle_id=okslb1.cle_id(+) and
----------OKL contracts----------
decode(rctla.interface_line_context,&apos;OKL_CONTRACTS&apos;,rctla.interface_line_attribute10||rctla.interface_line_attribute11)=ocasb.id(+) and
ocasb.sty_id=ostb.id(+) and
ocasb.sel_id=ose.id(+) and
ocasb.kle_id=oklb.id(+)
) x</SQL_TEXT>
  <NUMBER_FORMAT>General</NUMBER_FORMAT>
  <COPIED_FROM_GUID>49A8B1A8036808ACE0530100007FEB91</COPIED_FROM_GUID>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>RK: AR Transactions and Lines</REPORT_NAME>
    <DESCRIPTION>Receivables transactions and line details including additional columns specifically for service (OKS) and lease (OKL) contracts.
Note: This report shows completed transactions only as it is based on table ar_payment_schedules_all.</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>Draft</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>-20</DISPLAY_SEQUENCE>
    <ANCHOR>&amp;account_columns</ANCHOR>
    <SQL_TEXT>select
&apos;gcck.&apos;||lower(fifs.application_column_name)||&apos; &quot;&apos;||fifst.form_left_prompt||&apos;&quot;,&apos;||chr(10)||
&apos;xxen_util.segment_description(gcck.&apos;||lower(fifs.application_column_name)||&apos;, &apos;&apos;&apos;||fifs.application_column_name||&apos;&apos;&apos;, gcck.chart_of_accounts_id)&apos;||&apos; &quot;&apos;||fifst.form_left_prompt||&apos; desc&quot;,&apos; text
from
fnd_id_flex_segments fifs,
fnd_id_flex_segments_tl fifst
where
fifs.application_id=101 and
fifs.id_flex_code=&apos;GL#&apos; and
fifs.id_flex_num=(select gl.chart_of_accounts_id from gl_ledgers gl where gl.name=:ledger) and
fifs.application_id=fifst.application_id and
fifs.id_flex_code=fifst.id_flex_code and
fifs.id_flex_num=fifst.id_flex_num and
fifs.application_column_name=fifst.application_column_name and
fifst.language=userenv(&apos;lang&apos;)
order by
fifs.segment_num</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 nvl(glsnav.ledger_id,gasna.ledger_id) from gl_access_set_norm_assign gasna, gl_ledger_set_norm_assign_v glsnav where gasna.access_set_id=fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;) and gasna.ledger_id=glsnav.ledger_set_id(+)) 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>
    <DEFAULT_VALUE>select
gl.name
from
ar_system_parameters asp,
gl_ledgers gl
where
asp.set_of_books_id=gl.ledger_id</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Ledger</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>2</SORT_ORDER>
    <DISPLAY_SEQUENCE>-10</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>hcasa.cust_acct_site_id in (select dbms_lob.substr(xrrpv.value) cust_acct_site_id from xxen_report_run_param_values xrrpv where xrrpv.run_id=:run_id)</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Number</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>cust_acct_site_id</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>3</SORT_ORDER>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>acia.cons_billing_number=:cons_billing_number</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Char</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Invoice Number</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>4</SORT_ORDER>
    <DISPLAY_SEQUENCE>20</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>apsa.trx_number=:trx_number</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Char</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Transaction Number</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>5</SORT_ORDER>
    <DISPLAY_SEQUENCE>30</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>US</LANGUAGE>
      <PARAMETER_NAME>Customer Name like</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>6</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>US</LANGUAGE>
      <PARAMETER_NAME>Account Number</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>7</SORT_ORDER>
    <DISPLAY_SEQUENCE>50</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>rcta.interface_header_context=:category and rctla.interface_line_context=:category</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>AR TRX Interface Context</LOV_NAME>
    <LOV_GUID>8E2FF36EDE8179D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select &apos;ORDER ENTRY&apos; value, &apos;Order Entry&apos; description from dual union all
select &apos;PA INVOICES&apos; value, &apos;Pa Invoices&apos; description from dual union all
select &apos;PA Internal Invoices&apos; value, &apos;Pa Internal Invoices&apos; description from dual union all
select &apos;PROJECTS INVOICES&apos; value, &apos;Projects Invoices&apos; description from dual union all
select &apos;OKL_CONTRACTS&apos; value, &apos;Okl Contracts&apos; description from dual union all
select &apos;OKS CONTRACTS&apos; value, &apos;Oks Contracts&apos; description from dual union all
select &apos;LOANS&apos; value, &apos;Loans&apos; description from dual union all
select &apos;CLAIM&apos; value, &apos;Claim&apos; description from dual union all
select &apos;INTERCOMPANY&apos; value, &apos;Intercompany&apos; description from dual union all
select &apos;GLOBAL_PROCUREMENT&apos; value, &apos;Global Procurement&apos; description from dual union all
select &apos;SERVICE&apos; value, &apos;Service&apos; description from dual union all
select &apos;OTHER&apos; value, &apos;All other transactions not in above categories&apos; description from dual</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Category</PARAMETER_NAME>
      <DESCRIPTION>Interface line context for AR reports</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>8</SORT_ORDER>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>nvl(rcta.interface_header_context,&apos;x&apos;) not in (
&apos;ORDER ENTRY&apos;,
&apos;PA INVOICES&apos;,
&apos;PA Internal Invoices&apos;,
&apos;PROJECTS INVOICES&apos;,
&apos;OKL_CONTRACTS&apos;,
&apos;OKS CONTRACTS&apos;,
&apos;LOANS&apos;,
&apos;CLAIM&apos;,
&apos;INTERCOMPANY&apos;,
&apos;GLOBAL_PROCUREMENT&apos;,
&apos;SERVICE&apos;
)</SQL_TEXT>
    <MATCHING_VALUE>OTHER</MATCHING_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Category</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>9</SORT_ORDER>
    <DISPLAY_SEQUENCE>55</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>apsa.class=xxen_util.lookup_code(:class,&apos;INV/CM/ADJ&apos;,222)</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
flv.meaning value,
flv.lookup_code description
from
fnd_lookup_values flv
where
flv.lookup_type(+)=&apos;INV/CM/ADJ&apos; and
flv.view_application_id(+)=222 and
flv.language(+)=userenv(&apos;lang&apos;) and
flv.security_group_id(+)=0
order by
flv.lookup_code</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Class</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>10</SORT_ORDER>
    <DISPLAY_SEQUENCE>60</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>apsa.trx_date&gt;=(select
gps.start_date
from
gl_period_statuses gps
where
gps.period_name=:period_name and
gps.set_of_books_id=(select hou.set_of_books_id from hr_operating_units hou where hou.organization_id=fnd_global.org_id) and
gps.application_id=222) and
apsa.trx_date&lt;(select
gps.end_date+1
from
gl_period_statuses gps
where
gps.period_name=:period_name and
gps.set_of_books_id=(select hou.set_of_books_id from hr_operating_units hou where hou.organization_id=fnd_global.org_id) and
gps.application_id=222)</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>AR Period</LOV_NAME>
    <LOV_GUID>8E2FF36EDEAF79D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
gps.period_name value,
xxen_util.meaning(gps.closing_status,&apos;CLOSING_STATUS&apos;,222)||&apos;: &apos;||gps.start_date||&apos; - &apos;||gps.end_date description
from
gl_period_statuses gps
where
gps.ledger_id=
(
select
asp.set_of_books_id 
from
ar_system_parameters asp
where
(:$flex$.ledger is null or asp.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 
(:$flex$.operating_unit is null or asp.set_of_books_id in (select hou.set_of_books_id from hr_operating_units hou where xxen_util.contains(:$flex$.operating_unit,hou.name)=&apos;Y&apos;)) and 
rownum=1
) and
gps.start_date&lt;=sysdate+400 and
gps.application_id=222
order by
gps.start_date desc</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Period</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>11</SORT_ORDER>
    <DISPLAY_SEQUENCE>70</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>apsa.trx_date&gt;=:trx_date_from</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Inv. Date From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>12</SORT_ORDER>
    <DISPLAY_SEQUENCE>80</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>apsa.trx_date&lt;:trx_date_to+1</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Inv. Date To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>13</SORT_ORDER>
    <DISPLAY_SEQUENCE>90</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>apsa.status=xxen_util.lookup_code(:status,&apos;PAYMENT_SCHEDULE_STATUS&apos;,222)</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
flv.meaning value,
flv.lookup_code description
from
fnd_lookup_values flv
where
flv.lookup_type=&apos;PAYMENT_SCHEDULE_STATUS&apos; and
flv.view_application_id=222 and
flv.language=userenv(&apos;lang&apos;) and
flv.security_group_id=0
order by
flv.lookup_code desc</LOV_QUERY_DSP>
    <DEFAULT_VALUE>xxen_util.meaning(&apos;OP&apos;,&apos;PAYMENT_SCHEDULE_STATUS&apos;,222)</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Status</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>14</SORT_ORDER>
    <DISPLAY_SEQUENCE>100</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>apsa.class in (&apos;INV&apos;,&apos;DM&apos;) and apsa.status=&apos;OP&apos; and greatest(trunc(sysdate)-apsa.due_date,0)&gt;:overdue_days</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Number</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Overdue for more than x Days</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>15</SORT_ORDER>
    <DISPLAY_SEQUENCE>160</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>rctta.name=:trx_type</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>AR Transaction Type</LOV_NAME>
    <LOV_GUID>8E2FF36EDE9A79D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
rctta.name value,
nvl(flvv.meaning,rctta.type)||&apos;: &apos;||haouv.name description
from
hr_all_organization_units_vl haouv,
ra_cust_trx_types_all rctta,
fnd_lookup_values_vl flvv
where
(:$flex$.operating_unit is null or xxen_util.contains(:$flex$.operating_unit,haouv.name)=&apos;Y&apos;) and
haouv.organization_id=rctta.org_id and
rctta.type=flvv.lookup_code(+) and
flvv.lookup_type(+)=&apos;INV/CM/ADJ&apos; and
flvv.view_application_id(+)=222 and
flvv.security_group_id(+)=0
order by
rctta.name,
haouv.name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Transaction Type</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>16</SORT_ORDER>
    <DISPLAY_SEQUENCE>170</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>apsa.class=xxen_util.lookup_code(:trx_class,&apos;INV/CM/ADJ&apos;,222)</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>AR Transaction Class</LOV_NAME>
    <LOV_GUID>8E2FF36EDE8079D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
flvv.meaning value,
flvv.lookup_code description
from
fnd_lookup_values_vl flvv
where
flvv.lookup_type=&apos;INV/CM/ADJ&apos; and
flvv.view_application_id=222 and
flvv.security_group_id=0
order by
flvv.meaning</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Transaction Class</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>17</SORT_ORDER>
    <DISPLAY_SEQUENCE>180</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>rcta.printing_original_date&gt;=:print_date_from</SQL_TEXT>
    <PARAMETER_TYPE_DSP>DateTime</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Print Date from</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>18</SORT_ORDER>
    <DISPLAY_SEQUENCE>190</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>rcta.printing_original_date&lt;=:print_date_to</SQL_TEXT>
    <PARAMETER_TYPE_DSP>DateTime</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Print Date to</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>19</SORT_ORDER>
    <DISPLAY_SEQUENCE>200</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>haouv.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 mgoat.organization_id from mo_glob_org_access_tmp mgoat union select fnd_global.org_id from dual where fnd_release.major_version=11)
order by
hou.name</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select
haouv.name
from
hr_all_organization_units_vl haouv
where
haouv.organization_id=nvl((select mgoat.organization_id from mo_glob_org_access_tmp mgoat where mgoat.organization_id=nvl(fnd_profile.value(&apos;DEFAULT_ORG_ID&apos;),mgoat.organization_id) and rownum=1),fnd_global.org_id)</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <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>
