<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: AR Aging to GL Reconciliation -->
 <REPORTS_ROW>
  <GUID>0964C35119334F20B7C8700F935068B2</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>with
p as (
select
gl.ledger_id,
gl.name ledger,
gl.currency_code,
gl.chart_of_accounts_id,
gl.period_set_name,
gl.accounted_period_type,
gp0.start_date,
gp1.end_date,
gp0.period_year*10000+gp0.period_num period_from_num,
gp1.period_year*10000+gp1.period_num period_to_num
from
gl_ledgers gl,
gl_periods gp0,
gl_periods gp1
where
gl.name=:ledger and
gl.ledger_id in (select xroa.id from xxen_report_org_access xroa where xroa.access_type=&apos;LEDGER&apos;) and
gl.period_set_name=gp0.period_set_name and
gl.accounted_period_type=gp0.period_type and
gp0.period_name=:period_from and
gl.period_set_name=gp1.period_set_name and
gl.accounted_period_type=gp1.period_type and
gp1.period_name=:period and
gp0.start_date&lt;=gp1.end_date
),
ar as (
select /*+ materialize*/
x.code_combination_id,
x.customer_id,
sum(x.ar_opening) ar_opening,
sum(x.ar_closing) ar_closing
from
(
select
rctlgda.code_combination_id,
y.customer_id,
case when y.gl_date&lt;y.start_date then y.acctd_amount_due_remaining+
(
select
nvl(sum((decode(y.class,&apos;CM&apos;,decode(araa.application_type,&apos;CM&apos;,araa.acctd_amount_applied_from,araa.acctd_amount_applied_to),araa.acctd_amount_applied_to)+nvl(araa.acctd_earned_discount_taken,0)+nvl(araa.acctd_unearned_discount_taken,0))*decode(y.class,&apos;CM&apos;,decode(araa.application_type,&apos;CM&apos;,-1,1),1)),0)
from
ar_receivable_applications_all araa
where
(y.payment_schedule_id=araa.applied_payment_schedule_id or y.payment_schedule_id=araa.payment_schedule_id) and
araa.status in (&apos;APP&apos;,&apos;ACTIVITY&apos;) and
nvl(araa.confirmed_flag,&apos;Y&apos;)=&apos;Y&apos; and
araa.gl_date&gt;=y.start_date
)-
(select nvl(sum(aaa.acctd_amount),0) from ar_adjustments_all aaa where y.payment_schedule_id=aaa.payment_schedule_id and aaa.status=&apos;A&apos; and aaa.gl_date&gt;=y.start_date)
end ar_opening,
case when y.gl_date_closed&gt;y.end_date then y.acctd_amount_due_remaining+
(
select
nvl(sum((decode(y.class,&apos;CM&apos;,decode(araa.application_type,&apos;CM&apos;,araa.acctd_amount_applied_from,araa.acctd_amount_applied_to),araa.acctd_amount_applied_to)+nvl(araa.acctd_earned_discount_taken,0)+nvl(araa.acctd_unearned_discount_taken,0))*decode(y.class,&apos;CM&apos;,decode(araa.application_type,&apos;CM&apos;,-1,1),1)),0)
from
ar_receivable_applications_all araa
where
(y.payment_schedule_id=araa.applied_payment_schedule_id or y.payment_schedule_id=araa.payment_schedule_id) and
araa.status in (&apos;APP&apos;,&apos;ACTIVITY&apos;) and
nvl(araa.confirmed_flag,&apos;Y&apos;)=&apos;Y&apos; and
araa.gl_date&gt;y.end_date
)-
(select nvl(sum(aaa.acctd_amount),0) from ar_adjustments_all aaa where y.payment_schedule_id=aaa.payment_schedule_id and aaa.status=&apos;A&apos; and aaa.gl_date&gt;y.end_date)
end ar_closing
from
(
select
apsa.payment_schedule_id,
apsa.customer_trx_id,
apsa.customer_id,
apsa.class,
apsa.gl_date,
apsa.gl_date_closed,
apsa.acctd_amount_due_remaining,
p.start_date,
p.end_date
from
p,
ar_payment_schedules_all apsa
where
apsa.gl_date_closed&gt;=p.start_date and
apsa.gl_date&lt;=p.end_date and
(apsa.gl_date&lt;p.start_date or apsa.gl_date_closed&gt;p.end_date) and
apsa.class not in (&apos;PMT&apos;,&apos;BR&apos;) and
apsa.org_id in (select aspa.org_id from ar_system_parameters_all aspa where p.ledger_id=aspa.set_of_books_id)
) y,
ra_cust_trx_line_gl_dist_all rctlgda
where
y.customer_trx_id=rctlgda.customer_trx_id and
rctlgda.account_class=&apos;REC&apos; and
rctlgda.latest_rec_flag=&apos;Y&apos;
union all
select
araa.code_combination_id,
apsa.customer_id,
case when araa.gl_date&lt;p.start_date and (araa.reversal_gl_date is null or apsa.gl_date&lt;p.start_date) then -araa.acctd_amount_applied_from end ar_opening,
case when apsa.gl_date_closed&gt;p.end_date and (araa.reversal_gl_date is null or apsa.gl_date&lt;=p.end_date) then -araa.acctd_amount_applied_from end ar_closing
from
p,
ar_payment_schedules_all apsa,
ar_receivable_applications_all araa
where
apsa.gl_date_closed&gt;=p.start_date and
(apsa.gl_date&lt;p.start_date or apsa.gl_date_closed&gt;p.end_date) and
apsa.class=&apos;PMT&apos; and
nvl(apsa.receipt_confirmed_flag,&apos;Y&apos;)=&apos;Y&apos; and
apsa.org_id in (select aspa.org_id from ar_system_parameters_all aspa where p.ledger_id=aspa.set_of_books_id) and
apsa.cash_receipt_id=araa.cash_receipt_id and
araa.status in (&apos;ACC&apos;,&apos;UNAPP&apos;,&apos;UNID&apos;,&apos;OTHER ACC&apos;) and
nvl(araa.confirmed_flag,&apos;Y&apos;)=&apos;Y&apos; and
araa.gl_date&lt;=p.end_date
) x
group by
x.code_combination_id,
x.customer_id
),
acc as (
select /*+ materialize*/
gcc.code_combination_id
from
p,
gl_code_combinations gcc
where
p.chart_of_accounts_id=gcc.chart_of_accounts_id and
gcc.summary_flag=&apos;N&apos; and
(
:account_from is null and gcc.&amp;account_segment in (select gcc2.&amp;account_segment from ar, gl_code_combinations gcc2 where ar.code_combination_id=gcc2.code_combination_id) or
gcc.&amp;account_segment between :account_from and :account_to
)
)
select
y.ledger,
gcck.concatenated_segments account,
xxen_util.segment_description(gcck.&amp;account_segment,&apos;&amp;account_segment&apos;,gcck.chart_of_accounts_id) account_description,
hp.party_name customer,
hca.account_number customer_number,
y.gl_opening &quot;GL Opening Balance&quot;,
y.ar_opening &quot;AR Opening Balance&quot;,
y.gl_opening-y.ar_opening opening_difference,
y.receivables_journals,
y.manual_journals,
y.other_source_journals,
y.subledger_accounting,
y.not_transferred &quot;Not Transferred to GL&quot;,
y.not_posted &quot;Not Posted in GL&quot;,
y.subledger_manual &quot;Subledger Manual Entries&quot;,
y.not_accounted,
y.gl_subledger_difference &quot;GL to Subledger Difference&quot;,
y.ar_subledger_difference &quot;AR to Subledger Difference&quot;,
&amp;monthly_columns_outer
y.gl_closing &quot;GL Closing Balance&quot;,
y.ar_closing &quot;AR Closing Balance&quot;,
y.gl_closing-y.ar_closing closing_difference
from
(
select
x.*,
case when row_number() over (partition by x.code_combination_id order by x.customer_id nulls first)=1 then sum(x.receivables_journals+x.not_transferred+x.not_posted-x.subledger_accounting) over (partition by x.code_combination_id) end gl_subledger_difference,
x.ar_closing-x.ar_opening-x.subledger_accounting+x.subledger_manual-x.not_accounted ar_subledger_difference
from
(
select
p.ledger,
z.code_combination_id,
decode(:show_customers,&apos;Y&apos;,z.customer_id) customer_id,
&amp;monthly_columns
nvl(sum(z.gl_opening),0) gl_opening,
nvl(sum(z.ar_opening),0) ar_opening,
nvl(sum(z.manual_journals),0) manual_journals,
nvl(sum(z.other_source_journals),0) other_source_journals,
nvl(sum(z.receivables_journals),0) receivables_journals,
nvl(sum(z.subledger_accounting),0) subledger_accounting,
nvl(sum(z.not_transferred),0) not_transferred,
nvl(sum(z.not_posted),0) not_posted,
nvl(sum(z.subledger_manual),0) subledger_manual,
nvl(sum(z.not_accounted),0) not_accounted,
nvl(sum(z.gl_closing),0) gl_closing,
nvl(sum(z.ar_closing),0) ar_closing
from
p,
(
select /*+ leading(p acc gb) use_nl(gb)*/
gb.code_combination_id,
to_number(null) customer_id,
to_char(null) period_name,
sum(decode(gb.period_name,:period_from,nvl(gb.begin_balance_dr,0)-nvl(gb.begin_balance_cr,0))) gl_opening,
to_number(null) ar_opening,
to_number(null) manual_journals,
to_number(null) other_source_journals,
to_number(null) receivables_journals,
to_number(null) subledger_accounting,
to_number(null) not_transferred,
to_number(null) not_posted,
to_number(null) subledger_manual,
to_number(null) not_accounted,
sum(decode(gb.period_name,:period,nvl(gb.begin_balance_dr,0)-nvl(gb.begin_balance_cr,0)+nvl(gb.period_net_dr,0)-nvl(gb.period_net_cr,0))) gl_closing,
to_number(null) ar_closing
from
p,
acc,
gl_balances gb
where
acc.code_combination_id=gb.code_combination_id and
gb.period_name in (:period_from,:period) and
p.ledger_id=gb.ledger_id and
p.currency_code=gb.currency_code and
gb.actual_flag=&apos;A&apos; and
nvl(gb.translated_flag,&apos;x&apos;)&lt;&gt;&apos;R&apos;
group by
gb.code_combination_id
union all
select /*+ leading(p gp acc gjl) use_nl(gjl gjh)*/
gjl.code_combination_id,
to_number(null) customer_id,
to_char(null) period_name,
to_number(null) gl_opening,
to_number(null) ar_opening,
sum(case when gjh.status=&apos;P&apos; and gjh.je_source=&apos;Manual&apos; then nvl(gjl.accounted_dr,0)-nvl(gjl.accounted_cr,0) end) manual_journals,
sum(case when gjh.status=&apos;P&apos; and gjh.je_source not in (&apos;Manual&apos;,&apos;Receivables&apos;) then nvl(gjl.accounted_dr,0)-nvl(gjl.accounted_cr,0) end) other_source_journals,
sum(case when gjh.status=&apos;P&apos; and gjh.je_source=&apos;Receivables&apos; then nvl(gjl.accounted_dr,0)-nvl(gjl.accounted_cr,0) end) receivables_journals,
to_number(null) subledger_accounting,
to_number(null) not_transferred,
sum(case when gjh.status&lt;&gt;&apos;P&apos; and gjh.je_source=&apos;Receivables&apos; then nvl(gjl.accounted_dr,0)-nvl(gjl.accounted_cr,0) end) not_posted,
to_number(null) subledger_manual,
to_number(null) not_accounted,
to_number(null) gl_closing,
to_number(null) ar_closing
from
p,
acc,
gl_periods gp,
gl_je_lines gjl,
gl_je_headers gjh
where
p.period_set_name=gp.period_set_name and
p.accounted_period_type=gp.period_type and
gp.period_year*10000+gp.period_num between p.period_from_num and p.period_to_num and
acc.code_combination_id=gjl.code_combination_id and
gp.period_name=gjl.period_name and
p.ledger_id=gjl.ledger_id and
gjl.je_header_id=gjh.je_header_id and
gjh.actual_flag=&apos;A&apos; and
gjh.currency_code&lt;&gt;&apos;STAT&apos;
group by
gjl.code_combination_id
union all
select
gi.code_combination_id,
to_number(null) customer_id,
to_char(null) period_name,
to_number(null) gl_opening,
to_number(null) ar_opening,
to_number(null) manual_journals,
to_number(null) other_source_journals,
to_number(null) receivables_journals,
to_number(null) subledger_accounting,
to_number(null) not_transferred,
sum(nvl(gi.accounted_dr,0)-nvl(gi.accounted_cr,0)) not_posted,
to_number(null) subledger_manual,
to_number(null) not_accounted,
to_number(null) gl_closing,
to_number(null) ar_closing
from
p,
acc,
gl_interface gi
where
acc.code_combination_id=gi.code_combination_id and
p.ledger_id=gi.ledger_id and
gi.user_je_source_name=(select gjsv.user_je_source_name from gl_je_sources_vl gjsv where gjsv.je_source_name=&apos;Receivables&apos;) and
gi.accounting_date&gt;=p.start_date and
gi.accounting_date&lt;p.end_date+1 and
gi.actual_flag=&apos;A&apos;
group by
gi.code_combination_id
union all
select
s.code_combination_id,
case when s.accounting_class_code in (&apos;UNAPP&apos;,&apos;ACC&apos;,&apos;UNID&apos;,&apos;CLAIM&apos;,&apos;PREPAY&apos;) then coalesce((select acra.pay_from_customer from xla.xla_transaction_entities xte, ar_cash_receipts_all acra where s.entity_id=xte.entity_id and xte.application_id=222 and xte.entity_code=&apos;RECEIPTS&apos; and xte.source_id_int_1=acra.cash_receipt_id),s.party_id) else s.party_id end customer_id,
s.period_name,
to_number(null) gl_opening,
to_number(null) ar_opening,
to_number(null) manual_journals,
to_number(null) other_source_journals,
to_number(null) receivables_journals,
s.subledger_accounting,
s.not_transferred,
to_number(null) not_posted,
s.subledger_manual,
to_number(null) not_accounted,
to_number(null) gl_closing,
to_number(null) ar_closing
from
(
select /*+ leading(p acc xal) use_nl(xal)*/
xal.code_combination_id,
xal.accounting_class_code,
case when xal.accounting_class_code in (&apos;UNAPP&apos;,&apos;ACC&apos;,&apos;UNID&apos;,&apos;CLAIM&apos;,&apos;PREPAY&apos;) then xah.entity_id end entity_id,
decode(xal.party_type_code,&apos;C&apos;,xal.party_id) party_id,
xah.period_name,
sum(nvl(xal.accounted_dr,0)-nvl(xal.accounted_cr,0)) subledger_accounting,
sum(case when xah.gl_transfer_status_code&lt;&gt;&apos;Y&apos; then nvl(xal.accounted_dr,0)-nvl(xal.accounted_cr,0) end) not_transferred,
sum(case when xah.event_type_code=&apos;MANUAL&apos; then nvl(xal.accounted_dr,0)-nvl(xal.accounted_cr,0) end) subledger_manual
from
p,
acc,
xla_ae_lines xal,
xla_ae_headers xah
where
acc.code_combination_id=xal.code_combination_id and
p.ledger_id=xal.ledger_id and
xal.accounting_date&gt;=p.start_date and
xal.accounting_date&lt;p.end_date+1 and
xal.application_id=222 and
xal.ae_header_id=xah.ae_header_id and
xah.application_id=222 and
p.ledger_id=xah.ledger_id and
xah.accounting_date&gt;=p.start_date and
xah.accounting_date&lt;p.end_date+1 and
xah.accounting_entry_status_code=&apos;F&apos; and
xah.balance_type_code=&apos;A&apos;
group by
xal.code_combination_id,
xal.accounting_class_code,
case when xal.accounting_class_code in (&apos;UNAPP&apos;,&apos;ACC&apos;,&apos;UNID&apos;,&apos;CLAIM&apos;,&apos;PREPAY&apos;) then xah.entity_id end,
decode(xal.party_type_code,&apos;C&apos;,xal.party_id),
xah.period_name
) s
union all
select
ar.code_combination_id,
ar.customer_id,
to_char(null) period_name,
to_number(null) gl_opening,
ar.ar_opening,
to_number(null) manual_journals,
to_number(null) other_source_journals,
to_number(null) receivables_journals,
to_number(null) subledger_accounting,
to_number(null) not_transferred,
to_number(null) not_posted,
to_number(null) subledger_manual,
to_number(null) not_accounted,
to_number(null) gl_closing,
ar.ar_closing
from
ar
where
ar.code_combination_id in (select acc.code_combination_id from acc)
union all
select
n.code_combination_id,
n.customer_id,
to_char(null) period_name,
to_number(null) gl_opening,
to_number(null) ar_opening,
to_number(null) manual_journals,
to_number(null) other_source_journals,
to_number(null) receivables_journals,
to_number(null) subledger_accounting,
to_number(null) not_transferred,
to_number(null) not_posted,
to_number(null) subledger_manual,
sum(n.amount) not_accounted,
to_number(null) gl_closing,
to_number(null) ar_closing
from
(
select
rctlgda.code_combination_id,
rcta.bill_to_customer_id customer_id,
rctlgda.acctd_amount amount
from
p,
ra_cust_trx_line_gl_dist_all rctlgda,
ra_customer_trx_all rcta
where
p.ledger_id=rctlgda.set_of_books_id and
rctlgda.posting_control_id=-3 and
rctlgda.gl_date&gt;=p.start_date and
rctlgda.gl_date&lt;=p.end_date and
rctlgda.account_class=&apos;REC&apos; and
rctlgda.latest_rec_flag=&apos;Y&apos; and
rctlgda.customer_trx_id=rcta.customer_trx_id and
rcta.org_id in (select aspa.org_id from ar_system_parameters_all aspa where p.ledger_id=aspa.set_of_books_id) and
rcta.customer_trx_id in (select apsa.customer_trx_id from ar_payment_schedules_all apsa where apsa.class&lt;&gt;&apos;BR&apos;)
union all
select
rctlgda.code_combination_id,
apsa.customer_id,
aaa.acctd_amount
from
p,
ar_adjustments_all aaa,
ar_payment_schedules_all apsa,
ra_cust_trx_line_gl_dist_all rctlgda
where
p.ledger_id=aaa.set_of_books_id and
aaa.posting_control_id=-3 and
aaa.gl_date&gt;=p.start_date and
aaa.gl_date&lt;=p.end_date and
aaa.status=&apos;A&apos; and
aaa.org_id in (select aspa.org_id from ar_system_parameters_all aspa where p.ledger_id=aspa.set_of_books_id) and
aaa.payment_schedule_id=apsa.payment_schedule_id and
apsa.customer_trx_id=rctlgda.customer_trx_id and
rctlgda.account_class=&apos;REC&apos; and
rctlgda.latest_rec_flag=&apos;Y&apos;
union all
select
rctlgda.code_combination_id,
apsa.customer_id,
-(decode(apsa.class,&apos;CM&apos;,decode(araa.application_type,&apos;CM&apos;,araa.acctd_amount_applied_from,araa.acctd_amount_applied_to),araa.acctd_amount_applied_to)+nvl(araa.acctd_earned_discount_taken,0)+nvl(araa.acctd_unearned_discount_taken,0))*decode(apsa.class,&apos;CM&apos;,decode(araa.application_type,&apos;CM&apos;,-1,1),1)
from
p,
ar_receivable_applications_all araa,
ar_payment_schedules_all apsa,
ra_cust_trx_line_gl_dist_all rctlgda
where
p.ledger_id=araa.set_of_books_id and
araa.posting_control_id=-3 and
araa.gl_date&gt;=p.start_date and
araa.gl_date&lt;=p.end_date and
araa.status in (&apos;APP&apos;,&apos;ACTIVITY&apos;) and
nvl(araa.confirmed_flag,&apos;Y&apos;)=&apos;Y&apos; and
araa.org_id in (select aspa.org_id from ar_system_parameters_all aspa where p.ledger_id=aspa.set_of_books_id) and
(araa.applied_payment_schedule_id=apsa.payment_schedule_id or araa.payment_schedule_id=apsa.payment_schedule_id) and
apsa.class not in (&apos;PMT&apos;,&apos;BR&apos;) and
apsa.customer_trx_id=rctlgda.customer_trx_id and
rctlgda.account_class=&apos;REC&apos; and
rctlgda.latest_rec_flag=&apos;Y&apos;
union all
select
araa.code_combination_id,
apsa.customer_id,
-araa.acctd_amount_applied_from
from
p,
ar_receivable_applications_all araa,
ar_payment_schedules_all apsa
where
p.ledger_id=araa.set_of_books_id and
araa.posting_control_id=-3 and
araa.gl_date&gt;=p.start_date and
araa.gl_date&lt;=p.end_date and
araa.status in (&apos;ACC&apos;,&apos;UNAPP&apos;,&apos;UNID&apos;,&apos;OTHER ACC&apos;) and
nvl(araa.confirmed_flag,&apos;Y&apos;)=&apos;Y&apos; and
araa.org_id in (select aspa.org_id from ar_system_parameters_all aspa where p.ledger_id=aspa.set_of_books_id) and
araa.cash_receipt_id=apsa.cash_receipt_id and
apsa.class=&apos;PMT&apos;
) n
where
n.code_combination_id in (select acc.code_combination_id from acc)
group by
n.code_combination_id,
n.customer_id
) z
group by
p.ledger,
z.code_combination_id,
decode(:show_customers,&apos;Y&apos;,z.customer_id)
) x
) y,
gl_code_combinations_kfv gcck,
hz_cust_accounts hca,
hz_parties hp
where
3=3 and
y.code_combination_id=gcck.code_combination_id and
y.customer_id=hca.cust_account_id(+) and
hca.party_id=hp.party_id(+) and
(y.gl_opening&lt;&gt;0 or y.ar_opening&lt;&gt;0 or y.manual_journals&lt;&gt;0 or y.other_source_journals&lt;&gt;0 or y.receivables_journals&lt;&gt;0 or y.subledger_accounting&lt;&gt;0 or y.not_posted&lt;&gt;0 or y.not_accounted&lt;&gt;0 or y.gl_subledger_difference&lt;&gt;0 or y.gl_closing&lt;&gt;0 or y.ar_closing&lt;&gt;0)
order by
gcck.concatenated_segments,
hp.party_name nulls first,
hca.account_number</SQL_TEXT>
  <NUMBER_FORMAT>#,##0.00;[Red]-#,##0.00</NUMBER_FORMAT>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>AR Aging to GL Reconciliation</REPORT_NAME>
    <DESCRIPTION>Reconciles the receivable accounts at the end of a GL period three ways: the GL balance, the Receivables subledger accounting and the AR open balance as of the period end date, which equals the AR Aging total with Show On Account set to Age (open transactions, unapplied, on-account, unidentified and claim receipts; receipts at risk and bills receivable are not included).

AR to GL Reconciliation checks the activity of one period, whether its Receivables accounting reached GL. This report explains the balance: why the receivable accounts of the trial balance differ from the aging, per account and per customer.

The reconciliation is a roll-forward from the start of Period From to the end of Period. The opening balances are as of the day before Period From starts, and Opening Difference is the difference already present then. Set Period From to the first period of Receivables in the ledger to show every manual or other source journal since then in the columns.

Receivables Journals, Manual Journals and Other Source Journals split the posted GL movement on the account by journal source; other sources include revaluation.

Subledger Accounting is the final Receivables accounting dated in the range. Not Transferred to GL and Not Posted in GL are the part of it missing from the GL balance, the latter including journals still in the GL interface. Subledger Manual Entries change GL but not AR. Not Accounted is AR activity in the range without final accounting.

GL to Subledger Difference is the posted Receivables journals less the subledger accounting posted, for example a journal imported twice. AR to Subledger Difference is the AR movement the subledger accounting does not explain, for example a credit memo whose revenue line was accounted to the receivable account.

Closing Difference equals Opening Difference plus Manual Journals, Other Source Journals, Subledger Manual Entries and GL to Subledger Difference, less Not Transferred to GL, Not Posted in GL, Not Accounted and AR to Subledger Difference.

The accounts are all combinations of the natural accounts that carry open receivables at either date, or of the natural account range of Account From and Account To. The AR balances include every operating unit of the ledger: like the GL balances, they are secured by ledger access.

Show Customers gives a row per account and customer, with subledger accounting attributed as in the aging: transactions to the bill-to customer, unapplied cash to the receipt&apos;s customer. The GL columns stay on the account row. Template Customer Differences lists the customers whose AR movement differs from the subledger accounting, and Show Monthly Movement adds the subledger accounting per period.</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>&amp;account_segment</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;monthly_columns</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;monthly_columns_outer</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>3=3</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:account_from</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:account_to</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:ledger</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:period</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:period_from</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:show_customers</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>-10</DISPLAY_SEQUENCE>
    <ANCHOR>&amp;account_segment</ANCHOR>
    <SQL_TEXT>&lt;parameter_value&gt;</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Char</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>select
fsav.application_column_name
from
gl_ledgers gl,
fnd_segment_attribute_values fsav
where
gl.name=:$flex$.ledger and
gl.chart_of_accounts_id=fsav.id_flex_num and
fsav.application_id=101 and
fsav.id_flex_code=&apos;GL#&apos; and
fsav.segment_attribute_type=&apos;GL_ACCOUNT&apos; and
fsav.attribute_value=&apos;Y&apos;</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Account Segment</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>2</SORT_ORDER>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <ANCHOR>:ledger</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>GL Ledger</LOV_NAME>
    <LOV_GUID>8E2FF36EDEB879D2E0530100007F1FF2</LOV_GUID>
    <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>
    <DEFAULT_VALUE>coalesce(xxen_util.previous_parameter_value(:parameter_id),xxen_util.default_ledger)</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>3</SORT_ORDER>
    <DISPLAY_SEQUENCE>20</DISPLAY_SEQUENCE>
    <ANCHOR>:period</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>GL Period (non adjustment)</LOV_NAME>
    <LOV_GUID>8E2FF36EDF3F79D2E0530100007F1FF2</LOV_GUID>
    <LOV_QUERY_DSP>select distinct
gp.period_name value,
(
select
xxen_util.meaning(gps.closing_status,&apos;CLOSING_STATUS&apos;,101)||&apos;: &apos;||fnd_date.date_to_displaydate(gps.start_date)||&apos; - &apos;||fnd_date.date_to_displaydate(gps.end_date) description
from
gl_period_statuses gps
where
gp.period_name=gps.period_name and
gps.ledger_id=(select gl.ledger_id from gl_ledgers gl where gl.name=:$flex$.ledger.value) and
gps.application_id=101
) description,
min(gp.start_date) over (partition by gp.period_name) min_start_date
from
gl_periods gp
where
gp.adjustment_period_flag=&apos;N&apos; and
(gp.period_set_name,gp.period_type) in (
select
gl.period_set_name,
gl.accounted_period_type
from
gl_ledgers gl
where
(:$flex$.operating_unit is null or gl.ledger_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
(:$flex$.ledger is null or xxen_util.contains(:$flex$.ledger.value,gl.name)=&apos;Y&apos;) and
(:$flex$.chart_of_accounts is null or gl.chart_of_accounts_id in (select fifsv.id_flex_num from fnd_id_flex_structures_vl fifsv where fifsv.application_id=101 and fifsv.id_flex_code=&apos;GL#&apos; and xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos;))
)
order by
min_start_date desc,
gp.period_name</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select
max(gp.period_name) keep (dense_rank last order by gp.start_date) period_name
from
gl_ledgers gl,
gl_periods gp
where
gl.name=:$flex$.ledger and
gl.period_set_name=gp.period_set_name and
gl.accounted_period_type=gp.period_type and
gp.adjustment_period_flag=&apos;N&apos; and
gp.end_date&lt;sysdate</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Period</PARAMETER_NAME>
      <DESCRIPTION>The balances are reconciled at the end of this period.</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>4</SORT_ORDER>
    <DISPLAY_SEQUENCE>30</DISPLAY_SEQUENCE>
    <ANCHOR>:period_from</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>GL Period (non adjustment)</LOV_NAME>
    <LOV_GUID>8E2FF36EDF3F79D2E0530100007F1FF2</LOV_GUID>
    <LOV_QUERY_DSP>select distinct
gp.period_name value,
(
select
xxen_util.meaning(gps.closing_status,&apos;CLOSING_STATUS&apos;,101)||&apos;: &apos;||fnd_date.date_to_displaydate(gps.start_date)||&apos; - &apos;||fnd_date.date_to_displaydate(gps.end_date) description
from
gl_period_statuses gps
where
gp.period_name=gps.period_name and
gps.ledger_id=(select gl.ledger_id from gl_ledgers gl where gl.name=:$flex$.ledger.value) and
gps.application_id=101
) description,
min(gp.start_date) over (partition by gp.period_name) min_start_date
from
gl_periods gp
where
gp.adjustment_period_flag=&apos;N&apos; and
(gp.period_set_name,gp.period_type) in (
select
gl.period_set_name,
gl.accounted_period_type
from
gl_ledgers gl
where
(:$flex$.operating_unit is null or gl.ledger_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
(:$flex$.ledger is null or xxen_util.contains(:$flex$.ledger.value,gl.name)=&apos;Y&apos;) and
(:$flex$.chart_of_accounts is null or gl.chart_of_accounts_id in (select fifsv.id_flex_num from fnd_id_flex_structures_vl fifsv where fifsv.application_id=101 and fifsv.id_flex_code=&apos;GL#&apos; and xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos;))
)
order by
min_start_date desc,
gp.period_name</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select
min(gp0.period_name) keep (dense_rank first order by gp0.period_num) period_from
from
gl_ledgers gl,
gl_periods gp,
gl_periods gp0
where
gl.name=:$flex$.ledger and
gl.period_set_name=gp.period_set_name and
gl.accounted_period_type=gp.period_type and
gp.period_name=:$flex$.period and
gp.period_set_name=gp0.period_set_name and
gp.period_type=gp0.period_type and
gp.period_year=gp0.period_year and
gp0.adjustment_period_flag=&apos;N&apos;</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Period From</PARAMETER_NAME>
      <DESCRIPTION>Start of the movement columns. The opening balances are as of the day before this period starts.</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>5</SORT_ORDER>
    <DISPLAY_SEQUENCE>40</DISPLAY_SEQUENCE>
    <ANCHOR>:account_from</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>GL Account</LOV_NAME>
    <LOV_GUID>F26C78167A224EFBE0530100007F336B</LOV_GUID>
    <LOV_QUERY_DSP>select
substrb(l.column_value,instrb(l.column_value,&apos;~&apos;,1,1)+1,instrb(l.column_value,&apos;~&apos;,1,2)-instrb(l.column_value,&apos;~&apos;,1,1)-1) value,
substrb(l.column_value,instrb(l.column_value,&apos;~&apos;,1,2)+1) description
from
(
select /*+ no_merge*/
nvl(min(decode(fifs.security_enabled_flag,&apos;N&apos;,fifs.id_flex_num)),min(fifs.id_flex_num)) id_flex_num,
fifs.application_column_name
from
fnd_id_flex_segments fifs
where
fifs.application_id=101 and
fifs.id_flex_code=&apos;GL#&apos; and
fifs.enabled_flag=&apos;Y&apos; and
(fifs.application_id, fifs.id_flex_code, fifs.id_flex_num, fifs.application_column_name) in (select fsav.application_id, fsav.id_flex_code, fsav.id_flex_num, fsav.application_column_name from fnd_segment_attribute_values fsav where fsav.segment_attribute_type=&apos;GL_ACCOUNT&apos; and fsav.attribute_value=&apos;Y&apos;) and
(:$flex$.chart_of_accounts_id is not null or :$flex$.chart_of_accounts is not null or :$flex$.operating_unit is not null or :$flex$.ledger is not null or :$flex$.ledger_category is not null or :$flex$.book is not null) and
fifs.id_flex_num in (
select /*+ no_unnest*/ fifsv.id_flex_num from fnd_id_flex_structures_vl fifsv where fifsv.application_id=101 and fifsv.id_flex_code=&apos;GL#&apos; and
(
fifsv.id_flex_num=:$flex$.chart_of_accounts_id or
xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos; or
(:$flex$.operating_unit is not null or :$flex$.ledger is not null or :$flex$.ledger_category is not null) and
fifsv.id_flex_num in
(
select
gl.chart_of_accounts_id
from
gl_ledgers gl
where
(:$flex$.operating_unit is null or gl.ledger_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
(:$flex$.ledger is null or xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos;) and
(:$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
gl.ledger_id in (select xroa.id from xxen_report_org_access xroa where xroa.access_type=&apos;LEDGER&apos;)
)
) or
fifsv.id_flex_num in (select fbc.accounting_flex_structure from fa_book_controls fbc where xxen_util.contains(:$flex$.book,fbc.book_type_code)=&apos;Y&apos;)
)
)
group by
fifs.flex_value_set_id,
fifs.application_column_name
) s,
table(xxen_util.kff_segment_lov(
p_application_id=&gt;101,
p_id_flex_code=&gt;&apos;GL#&apos;,
p_id_flex_num=&gt;s.id_flex_num,
p_application_column_name=&gt;s.application_column_name,
p_enabled_only=&gt;&apos;N&apos;
)) l
order by
1</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Account From</PARAMETER_NAME>
      <DESCRIPTION>Natural account range to reconcile. Without a value, the natural accounts that carry open receivables at either date.</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>6</SORT_ORDER>
    <DISPLAY_SEQUENCE>50</DISPLAY_SEQUENCE>
    <ANCHOR>:account_to</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>GL Account</LOV_NAME>
    <LOV_GUID>F26C78167A224EFBE0530100007F336B</LOV_GUID>
    <LOV_QUERY_DSP>select
substrb(l.column_value,instrb(l.column_value,&apos;~&apos;,1,1)+1,instrb(l.column_value,&apos;~&apos;,1,2)-instrb(l.column_value,&apos;~&apos;,1,1)-1) value,
substrb(l.column_value,instrb(l.column_value,&apos;~&apos;,1,2)+1) description
from
(
select /*+ no_merge*/
nvl(min(decode(fifs.security_enabled_flag,&apos;N&apos;,fifs.id_flex_num)),min(fifs.id_flex_num)) id_flex_num,
fifs.application_column_name
from
fnd_id_flex_segments fifs
where
fifs.application_id=101 and
fifs.id_flex_code=&apos;GL#&apos; and
fifs.enabled_flag=&apos;Y&apos; and
(fifs.application_id, fifs.id_flex_code, fifs.id_flex_num, fifs.application_column_name) in (select fsav.application_id, fsav.id_flex_code, fsav.id_flex_num, fsav.application_column_name from fnd_segment_attribute_values fsav where fsav.segment_attribute_type=&apos;GL_ACCOUNT&apos; and fsav.attribute_value=&apos;Y&apos;) and
(:$flex$.chart_of_accounts_id is not null or :$flex$.chart_of_accounts is not null or :$flex$.operating_unit is not null or :$flex$.ledger is not null or :$flex$.ledger_category is not null or :$flex$.book is not null) and
fifs.id_flex_num in (
select /*+ no_unnest*/ fifsv.id_flex_num from fnd_id_flex_structures_vl fifsv where fifsv.application_id=101 and fifsv.id_flex_code=&apos;GL#&apos; and
(
fifsv.id_flex_num=:$flex$.chart_of_accounts_id or
xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos; or
(:$flex$.operating_unit is not null or :$flex$.ledger is not null or :$flex$.ledger_category is not null) and
fifsv.id_flex_num in
(
select
gl.chart_of_accounts_id
from
gl_ledgers gl
where
(:$flex$.operating_unit is null or gl.ledger_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
(:$flex$.ledger is null or xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos;) and
(:$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
gl.ledger_id in (select xroa.id from xxen_report_org_access xroa where xroa.access_type=&apos;LEDGER&apos;)
)
) or
fifsv.id_flex_num in (select fbc.accounting_flex_structure from fa_book_controls fbc where xxen_util.contains(:$flex$.book,fbc.book_type_code)=&apos;Y&apos;)
)
)
group by
fifs.flex_value_set_id,
fifs.application_column_name
) s,
table(xxen_util.kff_segment_lov(
p_application_id=&gt;101,
p_id_flex_code=&gt;&apos;GL#&apos;,
p_id_flex_num=&gt;s.id_flex_num,
p_application_column_name=&gt;s.application_column_name,
p_enabled_only=&gt;&apos;N&apos;
)) l
order by
1</LOV_QUERY_DSP>
    <DEFAULT_VALUE>:$flex$.account_from</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Account To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>7</SORT_ORDER>
    <DISPLAY_SEQUENCE>60</DISPLAY_SEQUENCE>
    <ANCHOR>:show_customers</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>Yes</LOV_NAME>
    <LOV_GUID>8E2FF36EDEA679D2E0530100007F1FF2</LOV_GUID>
    <LOV_QUERY_DSP>select &apos;Y&apos; id, xxen_util.meaning(&apos;Y&apos;,&apos;YES_NO&apos;,0) value, null description from dual</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Show Customers</PARAMETER_NAME>
      <DESCRIPTION>One row per account and customer.</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>8</SORT_ORDER>
    <DISPLAY_SEQUENCE>70</DISPLAY_SEQUENCE>
    <ANCHOR>3=3</ANCHOR>
    <SQL_TEXT>hp.party_name=:customer</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>AR Customer Name</LOV_NAME>
    <LOV_GUID>8E2FF36EDE8679D2E0530100007F1FF2</LOV_GUID>
    <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
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
union all
select
hca2.cust_account_id
from
hz_cust_accounts hca2
where
:$flex$.operating_unit is null
)
order by
hp.party_name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Customer</PARAMETER_NAME>
      <DESCRIPTION>Restricts the customer rows of Show Customers.</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>9</SORT_ORDER>
    <DISPLAY_SEQUENCE>80</DISPLAY_SEQUENCE>
    <ANCHOR>3=3</ANCHOR>
    <SQL_TEXT>(y.gl_subledger_difference&lt;&gt;0 or y.ar_subledger_difference&lt;&gt;0)</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>Yes</LOV_NAME>
    <LOV_GUID>8E2FF36EDEA679D2E0530100007F1FF2</LOV_GUID>
    <LOV_QUERY_DSP>select &apos;Y&apos; id, xxen_util.meaning(&apos;Y&apos;,&apos;YES_NO&apos;,0) value, null description from dual</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Differences Only</PARAMETER_NAME>
      <DESCRIPTION>Rows with a GL to Subledger Difference or an AR to Subledger Difference.</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>10</SORT_ORDER>
    <DISPLAY_SEQUENCE>90</DISPLAY_SEQUENCE>
    <ANCHOR>&amp;monthly_columns</ANCHOR>
    <SQL_TEXT>select
&apos;sum(decode(z.period_name,&apos;&apos;&apos;||gp.period_name||&apos;&apos;&apos;,z.subledger_accounting)) &quot;&apos;||gp.period_name||&apos;&quot;,&apos; text
from
gl_ledgers gl,
gl_periods gp0,
gl_periods gp1,
gl_periods gp
where
gl.name=:ledger and
gl.period_set_name=gp0.period_set_name and
gl.accounted_period_type=gp0.period_type and
gp0.period_name=:period_from and
gl.period_set_name=gp1.period_set_name and
gl.accounted_period_type=gp1.period_type and
gp1.period_name=:period and
gl.period_set_name=gp.period_set_name and
gl.accounted_period_type=gp.period_type and
gp.period_year*10000+gp.period_num between gp0.period_year*10000+gp0.period_num and gp1.period_year*10000+gp1.period_num
order by
gp.period_year,
gp.period_num</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>Yes</LOV_NAME>
    <LOV_GUID>8E2FF36EDEA679D2E0530100007F1FF2</LOV_GUID>
    <LOV_QUERY_DSP>select &apos;Y&apos; id, xxen_util.meaning(&apos;Y&apos;,&apos;YES_NO&apos;,0) value, null description from dual</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Show Monthly Movement</PARAMETER_NAME>
      <DESCRIPTION>Adds the subledger accounting of each period as a column.</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>11</SORT_ORDER>
    <ANCHOR>&amp;monthly_columns_outer</ANCHOR>
    <SQL_TEXT>select
&apos;y.&quot;&apos;||gp.period_name||&apos;&quot; &quot;&apos;||gp.period_name||&apos;&quot;,&apos; text
from
gl_ledgers gl,
gl_periods gp0,
gl_periods gp1,
gl_periods gp
where
gl.name=:ledger and
gl.period_set_name=gp0.period_set_name and
gl.accounted_period_type=gp0.period_type and
gp0.period_name=:period_from and
gl.period_set_name=gp1.period_set_name and
gl.accounted_period_type=gp1.period_type and
gp1.period_name=:period and
gl.period_set_name=gp.period_set_name and
gl.accounted_period_type=gp.period_type and
gp.period_year*10000+gp.period_num between gp0.period_year*10000+gp0.period_num and gp1.period_year*10000+gp1.period_num
order by
gp.period_year,
gp.period_num</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Show Monthly Movement</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
  </PARAMETERS>
  <TEMPLATES>
   <TEMPLATES_ROW>
    <GUID>A2A42CDB39884CA69938D831A0845DF3</GUID>
    <TEMPLATE_NAME>Account Summary</TEMPLATE_NAME>
    <DESCRIPTION>GL, subledger accounting and AR balances per receivable account with the reconciling items.</DESCRIPTION>
    <OWNER>SYSADMIN</OWNER>
    <TEMPLATE_COLUMNS>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>2</DISPLAY_SEQUENCE>
      <COLUMN_NAME>ACCOUNT</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>3</DISPLAY_SEQUENCE>
      <COLUMN_NAME>ACCOUNT_DESCRIPTION</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>18</DISPLAY_SEQUENCE>
      <COLUMN_NAME>AR Closing Balance</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>5</DISPLAY_SEQUENCE>
      <COLUMN_NAME>AR Opening Balance</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>16</DISPLAY_SEQUENCE>
      <COLUMN_NAME>AR to Subledger Difference</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>19</DISPLAY_SEQUENCE>
      <COLUMN_NAME>CLOSING_DIFFERENCE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>17</DISPLAY_SEQUENCE>
      <COLUMN_NAME>GL Closing Balance</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>4</DISPLAY_SEQUENCE>
      <COLUMN_NAME>GL Opening Balance</COLUMN_NAME>
      <FREEZE_PANES>Y</FREEZE_PANES>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>15</DISPLAY_SEQUENCE>
      <COLUMN_NAME>GL to Subledger Difference</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>1</DISPLAY_SEQUENCE>
      <COLUMN_NAME>LEDGER</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>8</DISPLAY_SEQUENCE>
      <COLUMN_NAME>MANUAL_JOURNALS</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>14</DISPLAY_SEQUENCE>
      <COLUMN_NAME>NOT_ACCOUNTED</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>12</DISPLAY_SEQUENCE>
      <COLUMN_NAME>Not Posted in GL</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>11</DISPLAY_SEQUENCE>
      <COLUMN_NAME>Not Transferred to GL</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>6</DISPLAY_SEQUENCE>
      <COLUMN_NAME>OPENING_DIFFERENCE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>9</DISPLAY_SEQUENCE>
      <COLUMN_NAME>OTHER_SOURCE_JOURNALS</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>7</DISPLAY_SEQUENCE>
      <COLUMN_NAME>RECEIVABLES_JOURNALS</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
      <COLUMN_NAME>SUBLEDGER_ACCOUNTING</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>13</DISPLAY_SEQUENCE>
      <COLUMN_NAME>Subledger Manual Entries</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
    </TEMPLATE_COLUMNS>
    <TEMPLATE_PIVOT>
    </TEMPLATE_PIVOT>
    <TEMPLATE_SHARED_STRINGS>
    </TEMPLATE_SHARED_STRINGS>
    <TEMPLATE_PARAMETER_DEFAULTS>
    </TEMPLATE_PARAMETER_DEFAULTS>
    <TEMPLATE_STYLES>
    </TEMPLATE_STYLES>
    <TEMPLATE_SHARING>
     <TEMPLATE_SHARING_ROW>
      <SHARING_LEVEL>S</SHARING_LEVEL>
      <LEVEL_VALUE>Site</LEVEL_VALUE>
     </TEMPLATE_SHARING_ROW>
    </TEMPLATE_SHARING>
    <PARAMETER_EXCLUSION>
     <PARAMETER_EXCLUSION_ROW>
      <PARAMETER_NAME>Customer</PARAMETER_NAME>
     </PARAMETER_EXCLUSION_ROW>
     <PARAMETER_EXCLUSION_ROW>
      <PARAMETER_NAME>Show Customers</PARAMETER_NAME>
     </PARAMETER_EXCLUSION_ROW>
     <PARAMETER_EXCLUSION_ROW>
      <PARAMETER_NAME>Show Monthly Movement</PARAMETER_NAME>
     </PARAMETER_EXCLUSION_ROW>
    </PARAMETER_EXCLUSION>
    <TEMPLATE_CONDITIONS>
    </TEMPLATE_CONDITIONS>
   </TEMPLATES_ROW>
   <TEMPLATES_ROW>
    <GUID>00B797CF962B48D39956C5CC7ECD85D9</GUID>
    <TEMPLATE_NAME>Customer Differences</TEMPLATE_NAME>
    <DYNAMIC_COLUMNS>Y</DYNAMIC_COLUMNS>
    <DESCRIPTION>Customers whose AR movement differs from the subledger accounting, per account.</DESCRIPTION>
    <OWNER>SYSADMIN</OWNER>
    <TEMPLATE_COLUMNS>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>2</DISPLAY_SEQUENCE>
      <COLUMN_NAME>ACCOUNT</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>3</DISPLAY_SEQUENCE>
      <COLUMN_NAME>ACCOUNT_DESCRIPTION</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>12</DISPLAY_SEQUENCE>
      <COLUMN_NAME>AR Closing Balance</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>6</DISPLAY_SEQUENCE>
      <COLUMN_NAME>AR Opening Balance</COLUMN_NAME>
      <FREEZE_PANES>Y</FREEZE_PANES>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
      <COLUMN_NAME>AR to Subledger Difference</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <COLUMN_NAME>CLOSING_DIFFERENCE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>4</DISPLAY_SEQUENCE>
      <COLUMN_NAME>CUSTOMER</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>5</DISPLAY_SEQUENCE>
      <COLUMN_NAME>CUSTOMER_NUMBER</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <COLUMN_NAME>GL Closing Balance</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <COLUMN_NAME>GL Opening Balance</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>11</DISPLAY_SEQUENCE>
      <COLUMN_NAME>GL to Subledger Difference</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>1</DISPLAY_SEQUENCE>
      <COLUMN_NAME>LEDGER</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <COLUMN_NAME>MANUAL_JOURNALS</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>9</DISPLAY_SEQUENCE>
      <COLUMN_NAME>NOT_ACCOUNTED</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <COLUMN_NAME>Not Posted in GL</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <COLUMN_NAME>Not Transferred to GL</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <COLUMN_NAME>OPENING_DIFFERENCE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <COLUMN_NAME>OTHER_SOURCE_JOURNALS</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <COLUMN_NAME>RECEIVABLES_JOURNALS</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>7</DISPLAY_SEQUENCE>
      <COLUMN_NAME>SUBLEDGER_ACCOUNTING</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>8</DISPLAY_SEQUENCE>
      <COLUMN_NAME>Subledger Manual Entries</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
    </TEMPLATE_COLUMNS>
    <TEMPLATE_PIVOT>
    </TEMPLATE_PIVOT>
    <TEMPLATE_SHARED_STRINGS>
    </TEMPLATE_SHARED_STRINGS>
    <TEMPLATE_PARAMETER_DEFAULTS>
     <TEMPLATE_PARAMETER_DEFAULTS_ROW>
      <PARAMETER_NAME>Differences Only</PARAMETER_NAME>
      <DEFAULT_VALUE>Y</DEFAULT_VALUE>
     </TEMPLATE_PARAMETER_DEFAULTS_ROW>
     <TEMPLATE_PARAMETER_DEFAULTS_ROW>
      <PARAMETER_NAME>Show Customers</PARAMETER_NAME>
      <DEFAULT_VALUE>Y</DEFAULT_VALUE>
      <LOCKED>Y</LOCKED>
     </TEMPLATE_PARAMETER_DEFAULTS_ROW>
    </TEMPLATE_PARAMETER_DEFAULTS>
    <TEMPLATE_STYLES>
    </TEMPLATE_STYLES>
    <TEMPLATE_SHARING>
     <TEMPLATE_SHARING_ROW>
      <SHARING_LEVEL>S</SHARING_LEVEL>
      <LEVEL_VALUE>Site</LEVEL_VALUE>
     </TEMPLATE_SHARING_ROW>
    </TEMPLATE_SHARING>
    <PARAMETER_EXCLUSION>
    </PARAMETER_EXCLUSION>
    <TEMPLATE_CONDITIONS>
    </TEMPLATE_CONDITIONS>
   </TEMPLATES_ROW>
  </TEMPLATES>
  <DEFAULT_TEMPLATES>
   <DEFAULT_TEMPLATES_ROW>
    <TEMPLATE_GUID>A2A42CDB39884CA69938D831A0845DF3</TEMPLATE_GUID>
   </DEFAULT_TEMPLATES_ROW>
  </DEFAULT_TEMPLATES>
  <UPLOAD_COLUMNS>
  </UPLOAD_COLUMNS>
  <UPLOAD_PARAMETERS>
  </UPLOAD_PARAMETERS>
  <UPLOAD_SQLS>
  </UPLOAD_SQLS>
 </REPORTS_ROW>
</REPORTS>
</ROOT>
