<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: FA Cost Clearing Reconciliation - draft -->
 <REPORTS_ROW>
  <GUID>82288223F1DA3869E053B46B63588994</GUID>
  <SQL_TEXT>select	fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;ar_flex_bal_seg&apos;, &apos;SQLGL&apos;, &apos;GL#&apos;, glcc_ar.CHART_OF_ACCOUNTS_ID, NULL, glcc_ar.CODE_COMBINATION_ID, &apos;GL_BALANCING&apos;, &apos;Y&apos;, &apos;VALUE&apos;)			comp_code,
	fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;ar_flex_acct_seg&apos;, &apos;SQLGL&apos;, &apos;GL#&apos;, glcc_ar.CHART_OF_ACCOUNTS_ID, NULL, glcc_ar.CODE_COMBINATION_ID, &apos;GL_ACCOUNT&apos;, &apos;Y&apos;, &apos;VALUE&apos;)			clearing_acc,
	fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;ar_flex_cost_seg&apos;, &apos;SQLGL&apos;, &apos;GL#&apos;, glcc_ar.CHART_OF_ACCOUNTS_ID, NULL, glcc_ar.CODE_COMBINATION_ID, &apos;FA_COST_CTR&apos;, &apos;Y&apos;, &apos;VALUE&apos;)			cost_center,
        	lu.meaning					tr_type_code,
	ad.asset_number||&apos; - &apos;||ad.description		asset_number,
	po_ai_in.vendor_name			po_vendor_name,
	ai_in.invoice_number			invoice_number,
	ai_in.invoice_line_number||&apos; - &apos;||ai_in.ap_distribution_line_number		line_num,
	ai_in.description				description,
	1,
	round(sum(nvl(ai_in.payables_cost,0)) ,2)		cleared_cost
from
        	po_vendors		po_ai_in,
       	 fa_lookups		lu,
	gl_code_combinations    	glcc_ar,
	fa_additions		ad,
	fa_asset_history		ah,
	&amp;lp_fa_asset_invoices	ai_in,
	fa_transaction_headers	th
where
	lu.lookup_code 	       = decode(ah.asset_type, &apos;CIP&apos;,
				&apos;CIP ADDITION&apos;, &apos;ADDITION&apos;)		and
	lu.lookup_type         = &apos;FAXOLTRX&apos;
and	th.date_effective between
		:PERIOD1_POD 	and
		:PERIOD1_PCD and 
	th.book_type_code  	= :P_BOOK  and
	th.transaction_type_code = &apos;TRANSFER IN&apos;
and	ad.asset_id 		= th.asset_id
and	ah.asset_id		= th.asset_id			and
	ah.asset_type		&lt;&gt; &apos;EXPENSED&apos; 			and
	ah.date_effective	&lt;= 
		:PERIOD1_PCD  and
	nvl(ah.date_ineffective,sysdate) &gt; 
		:PERIOD1_PCD
and	ai_in.asset_id         	= th.asset_id				and
	ai_in.date_effective    &lt;= 
		:PERIOD1_PCD  and
	nvl(ai_in.date_ineffective,sysdate) &gt;
		:PERIOD1_PCD
and	glcc_ar.code_combination_id = ai_in.payables_code_combination_id 
and 	nvl(ai_in.payables_cost, 0) != 0
and     	po_ai_in.vendor_id (+)	= ai_in.po_vendor_id
group by
	fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;ar_flex_bal_seg&apos;, &apos;SQLGL&apos;, &apos;GL#&apos;, glcc_ar.CHART_OF_ACCOUNTS_ID, NULL, glcc_ar.CODE_COMBINATION_ID, &apos;GL_BALANCING&apos;, &apos;Y&apos;, &apos;VALUE&apos;),
	fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;ar_flex_acct_seg&apos;, &apos;SQLGL&apos;, &apos;GL#&apos;, glcc_ar.CHART_OF_ACCOUNTS_ID, NULL, glcc_ar.CODE_COMBINATION_ID, &apos;GL_ACCOUNT&apos;, &apos;Y&apos;, &apos;VALUE&apos;),
	fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;ar_flex_cost_seg&apos;, &apos;SQLGL&apos;, &apos;GL#&apos;, glcc_ar.CHART_OF_ACCOUNTS_ID, NULL, glcc_ar.CODE_COMBINATION_ID, &apos;FA_COST_CTR&apos;, &apos;Y&apos;, &apos;VALUE&apos;),
        	lu.meaning,
	ad.asset_number||&apos; - &apos;||ad.description,
	po_ai_in.vendor_name,
	ai_in.invoice_number,
	ai_in.invoice_line_number||&apos; - &apos;||ai_in.ap_distribution_line_number,
	ai_in.description
union
select	fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;ar_flex_bal_seg&apos;, &apos;SQLGL&apos;, &apos;GL#&apos;, glcc_ar.CHART_OF_ACCOUNTS_ID, NULL, glcc_ar.CODE_COMBINATION_ID, &apos;GL_BALANCING&apos;, &apos;Y&apos;, &apos;VALUE&apos;)			comp_code,
	fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;ar_flex_acct_seg&apos;, &apos;SQLGL&apos;, &apos;GL#&apos;, glcc_ar.CHART_OF_ACCOUNTS_ID, NULL, glcc_ar.CODE_COMBINATION_ID, &apos;GL_ACCOUNT&apos;, &apos;Y&apos;, &apos;VALUE&apos;)			clearing_acc,
	fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;ar_flex_cost_seg&apos;, &apos;SQLGL&apos;, &apos;GL#&apos;, glcc_ar.CHART_OF_ACCOUNTS_ID, NULL, glcc_ar.CODE_COMBINATION_ID, &apos;FA_COST_CTR&apos;, &apos;Y&apos;, &apos;VALUE&apos;)			cost_center,
       	lu.meaning				tr_type_code,
	ad.asset_number||&apos; - &apos;||ad.description		asset_number,
	po_ai_in.vendor_name			po_vendor_name,
	ai_in.invoice_number			invoice_number,
	ai_in.invoice_line_number||&apos; - &apos;||ai_in.ap_distribution_line_number		line_num,
	ai_in.description				description,
	2,
	round(sum(nvl(ai_in.payables_cost,0)),2)		cleared_cost
from	po_vendors		po_ai_in,
        	fa_lookups		lu,
	gl_code_combinations    	glcc_ar,
	fa_additions		ad,
	fa_invoice_transactions	it,
	&amp;lp_fa_asset_invoices		ai_in,
	fa_transaction_headers	tht,
	fa_transaction_headers	th
where	it.book_type_code      = :P_BOOK  and    
	it.invoice_transaction_id = th.invoice_transaction_id		and
	it.transaction_type	= &apos;MASS ADDITION&apos;
and	lu.lookup_code 	       = decode(th.transaction_type_code,
				&apos;ADDITION/VOID&apos;,&apos;ADDITION&apos;,
				th.transaction_type_code)		and
	lu.lookup_type         = &apos;FAXOLTRX&apos;
and	th.date_effective between
		:PERIOD1_POD  and
		:PERIOD1_PCD  and 
	th.book_type_code  	= :P_BOOK  and
	th.transaction_type_code in 
		(&apos;CIP ADJUSTMENT&apos;, &apos;ADJUSTMENT&apos;, &apos;ADDITION&apos;,&apos;ADDITION/VOID&apos;)
and	tht.date_effective &lt;
		:PERIOD1_POD  and
	tht.book_type_code  	= :P_BOOK  and
	tht.asset_id		= th.asset_id			and
	tht.transaction_type_code = &apos;TRANSFER IN&apos;
and	ad.asset_id = th.asset_id					and
 	ad.asset_type 	&lt;&gt; &apos;EXPENSED&apos;
and	ai_in.asset_id         = th.asset_id				and
	ai_in.payables_code_combination_id
		= glcc_ar.code_combination_id
and	ai_in.invoice_transaction_id_in = it.invoice_transaction_id
and     	ai_in.date_effective     &lt;= th.date_effective				and
	nvl(ai_in.date_ineffective,sysdate) &gt; th.date_effective
and 	nvl(ai_in.payables_cost, 0) != 0
and    	 ai_in.po_vendor_id     = po_ai_in.vendor_id(+)
group by
	fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;ar_flex_bal_seg&apos;, &apos;SQLGL&apos;, &apos;GL#&apos;, glcc_ar.CHART_OF_ACCOUNTS_ID, NULL, glcc_ar.CODE_COMBINATION_ID, &apos;GL_BALANCING&apos;, &apos;Y&apos;, &apos;VALUE&apos;),
	fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;ar_flex_acct_seg&apos;, &apos;SQLGL&apos;, &apos;GL#&apos;, glcc_ar.CHART_OF_ACCOUNTS_ID, NULL, glcc_ar.CODE_COMBINATION_ID, &apos;GL_ACCOUNT&apos;, &apos;Y&apos;, &apos;VALUE&apos;),
	fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;ar_flex_cost_seg&apos;, &apos;SQLGL&apos;, &apos;GL#&apos;, glcc_ar.CHART_OF_ACCOUNTS_ID, NULL, glcc_ar.CODE_COMBINATION_ID, &apos;FA_COST_CTR&apos;, &apos;Y&apos;, &apos;VALUE&apos;),
        	lu.meaning,
	ad.asset_number||&apos; - &apos;||ad.description,
	po_ai_in.vendor_name,
	ai_in.invoice_number,
	ai_in.invoice_line_number||&apos; - &apos;||ai_in.ap_distribution_line_number,
	ai_in.description
union
select	fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;fa_flex_bal_seg&apos;, &apos;SQLGL&apos;, &apos;GL#&apos;, glcc_fa.CHART_OF_ACCOUNTS_ID, NULL, glcc_fa.CODE_COMBINATION_ID, &apos;GL_BALANCING&apos;, &apos;Y&apos;, &apos;VALUE&apos;)			comp_code,
	fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;ar_flex_acct_seg&apos;, &apos;SQLGL&apos;, &apos;GL#&apos;, glcc_ar.CHART_OF_ACCOUNTS_ID, NULL, glcc_ar.CODE_COMBINATION_ID, &apos;GL_ACCOUNT&apos;, &apos;Y&apos;, &apos;VALUE&apos;)			clearing_acc,
	fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;fa_flex_cost_seg&apos;, &apos;SQLGL&apos;, &apos;GL#&apos;, glcc_fa.CHART_OF_ACCOUNTS_ID, NULL, glcc_fa.CODE_COMBINATION_ID, &apos;FA_COST_CTR&apos;, &apos;Y&apos;, &apos;VALUE&apos;)			cost_center,
      	lu.meaning				tr_type_code,
	ad.asset_number||&apos; - &apos;||ad.description		asset_number_desc,
	po_ai_in.vendor_name			po_vendor_name,
	ai_in.invoice_number			invoice_number,
	ai_in.invoice_line_number||&apos; - &apos;||ai_in.ap_distribution_line_number		line_num,
	ai_in.description				description,
	3,
	round(sum((decode(ai_in.deleted_flag, &apos;YES&apos;, 0,
		nvl(ai_in.fixed_assets_cost, 0)) -
			nvl(ai_in.payables_cost, 0))
	    * (nvl (dh.units_assigned, ah.units) /
			ah.units)) ,2)			cleared_cost
from	po_vendors				po_ai_in,
       	 fa_lookups		lu,
	fa_distribution_history	dh,
	gl_code_combinations    	glcc_fa,
	gl_code_combinations   	 glcc_ar,
	fa_additions		ad,
	fa_asset_history		ah,
	fa_category_books      	 cat_bk,
	&amp;lp_fa_asset_invoices	 	ai_in,
	fa_transaction_headers	th
where
	lu.lookup_code 	       = decode(ah.asset_type, &apos;CIP&apos;,
				&apos;CIP ADDITION&apos;, &apos;ADDITION&apos;)		and
	lu.lookup_type         = &apos;FAXOLTRX&apos;
and	th.date_effective between
		:PERIOD1_POD  and
		:PERIOD1_PCD  and 
	th.book_type_code  	= :P_BOOK  and
	th.transaction_type_code = &apos;TRANSFER IN&apos;
and	ad.asset_id 		= th.asset_id
and	ah.asset_id		= th.asset_id				and
	ah.date_effective	&lt;= 
		:PERIOD1_PCD  and
	nvl(ah.date_ineffective,sysdate) &gt; 
		:PERIOD1_PCD  and
	ah.asset_type		&lt;&gt; &apos;EXPENSED&apos;
and     cat_bk.book_type_code	= :P_BOOK  and
	cat_bk.category_id	= ah.category_id
and	dh.book_type_code	= :P_BOOK  and
	dh.asset_id		= th.asset_id				and
     	dh.date_effective  &lt;= 
		:PERIOD1_PCD and  
	nvl(dh.date_ineffective,sysdate) &gt;
		:PERIOD1_PCD
and 	glcc_fa.code_combination_id = dh.code_combination_id
and	ai_in.asset_id         = th.asset_id				and
	ai_in.date_effective  &lt;= 
		:PERIOD1_PCD and  
	nvl(ai_in.date_ineffective,sysdate) &gt; 
		:PERIOD1_PCD  and
	nvl(ai_in.fixed_assets_cost,0) !=
		nvl(ai_in.payables_cost,0)
and     decode(ah.asset_type,&apos;CIP&apos;,cat_bk.wip_clearing_account_ccid,
                                      cat_bk.asset_clearing_account_ccid)
		           = glcc_ar.code_combination_id
and     po_ai_in.vendor_id (+)	= ai_in.po_vendor_id
group by
	fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;fa_flex_bal_seg&apos;, &apos;SQLGL&apos;, &apos;GL#&apos;, glcc_fa.CHART_OF_ACCOUNTS_ID, NULL, glcc_fa.CODE_COMBINATION_ID, &apos;GL_BALANCING&apos;, &apos;Y&apos;, &apos;VALUE&apos;),
	fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;ar_flex_acct_seg&apos;, &apos;SQLGL&apos;, &apos;GL#&apos;, glcc_ar.CHART_OF_ACCOUNTS_ID, NULL, glcc_ar.CODE_COMBINATION_ID, &apos;GL_ACCOUNT&apos;, &apos;Y&apos;, &apos;VALUE&apos;),
	fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;fa_flex_cost_seg&apos;, &apos;SQLGL&apos;, &apos;GL#&apos;, glcc_fa.CHART_OF_ACCOUNTS_ID, NULL, glcc_fa.CODE_COMBINATION_ID, &apos;FA_COST_CTR&apos;, &apos;Y&apos;, &apos;VALUE&apos;),
        	lu.meaning,
	ad.asset_number||&apos; - &apos;||ad.description,
	po_ai_in.vendor_name,
	ai_in.invoice_number,
	ai_in.invoice_line_number||&apos; - &apos;||ai_in.ap_distribution_line_number,
	ai_in.description
union
select	fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;fa_flex_bal_seg&apos;, &apos;SQLGL&apos;, &apos;GL#&apos;, glcc_fa.CHART_OF_ACCOUNTS_ID, NULL, glcc_fa.CODE_COMBINATION_ID, &apos;GL_BALANCING&apos;, &apos;Y&apos;, &apos;VALUE&apos;)				comp_code,
	fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;ar_flex_acct_seg&apos;, &apos;SQLGL&apos;, &apos;GL#&apos;, glcc_ar.CHART_OF_ACCOUNTS_ID, NULL, glcc_ar.CODE_COMBINATION_ID, &apos;GL_ACCOUNT&apos;, &apos;Y&apos;, &apos;VALUE&apos;)				clearing_acc,
	fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;fa_flex_cost_seg&apos;, &apos;SQLGL&apos;, &apos;GL#&apos;, glcc_fa.CHART_OF_ACCOUNTS_ID, NULL, glcc_fa.CODE_COMBINATION_ID, &apos;FA_COST_CTR&apos;, &apos;Y&apos;, &apos;VALUE&apos;)			cost_center,
        	lu.meaning					tr_type_code,
	ad.asset_number||&apos; - &apos;||ad.description		asset_number_desc,
	null		 				po_vendor_id,
	null						invoice_number,
	null				line_num,
	null						description,
	4, 
	round(sum((bk_in.cost - NVL(mc.cost,nvl(bk_out.cost,0))) *
		dh.units_assigned / ah.units),2)	cleared_cost
from	&amp;lp_fa_books		bk_in,
                  fa_mc_books	mc,
	&amp;lp_fa_books_bas	bk_out,
	fa_distribution_history    dh,
                  fa_lookups                          lu,
	gl_code_combinations    glcc_fa,
	gl_code_combinations    glcc_ar,
	fa_additions		ad,
                  fa_asset_history        ah,
	fa_category_books       cat_bk,
	fa_transaction_headers	th
where	
	th.book_type_code  = :P_BOOK  and
	th.invoice_transaction_id is null				and
	th.transaction_type_code in (&apos;CIP ADDITION&apos;, &apos;CIP ADDITION/VOID&apos;,
	&apos;ADDITION&apos;,&apos;ADDITION/VOID&apos;, &apos;ADJUSTMENT&apos;, &apos;CIP ADJUSTMENT&apos;) 	and
	th.date_effective between
		:PERIOD1_POD and
		:PERIOD1_PCD
and	lu.lookup_code 	       = decode(ah.asset_type, &apos;CIP&apos;,
				   decode(th.transaction_type_code,
					&apos;CIP ADDITION/VOID&apos;,&apos;CIP ADDITION&apos;,
					&apos;ADDITION/VOID&apos;,&apos;CIP ADDITION&apos;,
					th.transaction_type_code),
				   decode(th.transaction_type_code,
					&apos;CIP ADDITION/VOID&apos;,&apos;ADDITION&apos;,
					&apos;ADDITION/VOID&apos;,&apos;ADDITION&apos;,
					th.transaction_type_code)) and
     	lu.lookup_type		= &apos;FAXOLTRX&apos;
and	ad.asset_id		= th.asset_id
and	ah.asset_id		= th.asset_id				and
	ah.date_effective &lt;= 
 		decode(th.transaction_type_code,
		&apos;CIP ADJUSTMENT&apos;, th.date_effective,
		&apos;ADJUSTMENT&apos;, th.date_effective,
		:PERIOD1_PCD) and
	nvl(ah.date_ineffective,sysdate+1) &gt; 
 		decode(th.transaction_type_code,
		&apos;CIP ADJUSTMENT&apos;, th.date_effective,
		&apos;ADJUSTMENT&apos;, th.date_effective,
		:PERIOD1_PCD) and
	ah.asset_type         &lt;&gt; &apos;EXPENSED&apos;	
and	bk_in.transaction_header_id_in = th.transaction_header_id
and	bk_out.transaction_header_id_out(+) = th.transaction_header_id
and            mc.transaction_header_id_in(+) = DECODE(:mrc_sob_type_code,&apos;R&apos;,bk_out.transaction_header_id_in,NULL)
and  	mc.set_of_books_id(+) = :set_of_books_id
and	dh.book_type_code	= :P_BOOK 
and	dh.asset_id		= th.asset_id 			
and     	dh.date_effective	&lt;= 
 		decode(th.transaction_type_code,
		&apos;CIP ADJUSTMENT&apos;, th.date_effective,
		&apos;ADJUSTMENT&apos;, th.date_effective,
		:PERIOD1_PCD) and
	nvl(dh.date_ineffective,sysdate+1) &gt;
 		decode(th.transaction_type_code,
		&apos;CIP ADJUSTMENT&apos;, th.date_effective,
		&apos;ADJUSTMENT&apos;, th.date_effective,
		:PERIOD1_PCD)
and	glcc_fa.code_combination_id	= dh.code_combination_id
and	cat_bk.category_id	= ah.category_id				and
	cat_bk.book_type_code	= :P_BOOK  and
     	decode(ah.asset_type,&apos;CIP&apos;,cat_bk.wip_clearing_account_ccid,
                                     cat_bk.asset_clearing_account_ccid)
			       = glcc_ar.code_combination_id
and     	bk_in.cost       !=   nvl(bk_out.cost,0)
group by
	fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;fa_flex_bal_seg&apos;, &apos;SQLGL&apos;, &apos;GL#&apos;, glcc_fa.CHART_OF_ACCOUNTS_ID, NULL, glcc_fa.CODE_COMBINATION_ID, &apos;GL_BALANCING&apos;, &apos;Y&apos;, &apos;VALUE&apos;),
	fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;ar_flex_acct_seg&apos;, &apos;SQLGL&apos;, &apos;GL#&apos;, glcc_ar.CHART_OF_ACCOUNTS_ID, NULL, glcc_ar.CODE_COMBINATION_ID, &apos;GL_ACCOUNT&apos;, &apos;Y&apos;, &apos;VALUE&apos;),
	fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;fa_flex_cost_seg&apos;, &apos;SQLGL&apos;, &apos;GL#&apos;, glcc_fa.CHART_OF_ACCOUNTS_ID, NULL, glcc_fa.CODE_COMBINATION_ID, &apos;FA_COST_CTR&apos;, &apos;Y&apos;, &apos;VALUE&apos;),
        	lu.meaning,
	ad.asset_number||&apos; - &apos;||ad.description
union
select	fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;fa_flex_bal_seg&apos;, &apos;SQLGL&apos;, &apos;GL#&apos;, glcc_fa.CHART_OF_ACCOUNTS_ID, NULL, glcc_fa.CODE_COMBINATION_ID, &apos;GL_BALANCING&apos;, &apos;Y&apos;, &apos;VALUE&apos;)			comp_code,
	fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;ar_flex_acct_seg&apos;, &apos;SQLGL&apos;, &apos;GL#&apos;, glcc_ar.CHART_OF_ACCOUNTS_ID, NULL, glcc_ar.CODE_COMBINATION_ID, &apos;GL_ACCOUNT&apos;, &apos;Y&apos;, &apos;VALUE&apos;)			clearing_acc,
	fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;fa_flex_cost_seg&apos;, &apos;SQLGL&apos;, &apos;GL#&apos;, glcc_fa.CHART_OF_ACCOUNTS_ID, NULL, glcc_fa.CODE_COMBINATION_ID, &apos;FA_COST_CTR&apos;, &apos;Y&apos;, &apos;VALUE&apos;)			cost_center,
       	 lu.meaning				tr_type_code,
	ad.asset_number||&apos; - &apos;||ad.description		asset_number_desc,
	po_ai_in.vendor_name			po_vendor_name,
	ai_in.invoice_number			invoice_number,
	ai_in.invoice_line_number||&apos; - &apos;||ai_in.ap_distribution_line_number		line_num,
	ai_in.description				description,
	5, 
	round(sum(decode(it.transaction_type,
	&apos;INVOICE ADJUSTMENT&apos;,
		nvl(ai_in.fixed_assets_cost,0) -
		NVL(mc.fixed_assets_cost,nvl(ai_out.fixed_assets_cost,0)),
	&apos;INVOICE DELETE&apos;,
		-nvl(ai_in.fixed_assets_cost,0),
	&apos;INVOICE REINSTATE&apos;,
		nvl(ai_in.fixed_assets_cost,0),
	nvl(ai_in.fixed_assets_cost, 0) -
			nvl(ai_in.payables_cost, 0))
	    * (dh.units_assigned / ah.units)),2)		cleared_cost
from	fa_mc_asset_invoices	 mc,
	&amp;lp_fa_asset_invoices_bas	ai_out,
        	po_vendors		po_ai_in,
       	 fa_lookups		lu,
	fa_distribution_history	dh,
	gl_code_combinations   	 glcc_fa,
	gl_code_combinations    	glcc_ar,
	fa_additions		ad,
       	 fa_asset_history        	ah,
	fa_category_books       	cat_bk,
	fa_transaction_headers	th,
	fa_invoice_transactions	it,
	&amp;lp_fa_asset_invoices		ai_in
where	it.book_type_code	= :P_BOOK  and
	((it.transaction_type 	= &apos;MASS ADDITION&apos; 	and
	 nvl(ai_in.fixed_assets_cost,0) !=
		nvl(ai_in.payables_cost,0)) 			or
	(it.transaction_type 	= &apos;INVOICE ADDITION&apos; 		and
	 nvl(ai_in.fixed_assets_cost,0) != 0) 			or
	(it.transaction_type 	= &apos;INVOICE ADJUSTMENT&apos; 		and
	 nvl(ai_in.fixed_assets_cost,0) !=
		nvl(ai_out.fixed_assets_cost,0)) 		or
	 (it.transaction_type = &apos;INVOICE DELETE&apos; 		and
	 nvl(ai_in.fixed_assets_cost,0) != 0) 			or
	 (it.transaction_type = &apos;INVOICE REINSTATE&apos; 		and
	 nvl(ai_in.fixed_assets_cost,0) != 0))
and	lu.lookup_code 	       = th.transaction_type_code 	and
	lu.lookup_type         = &apos;FAXOLTRX&apos;
and	th.date_effective between
		:PERIOD1_POD  and
		:PERIOD1_PCD  and 
	th.invoice_transaction_id = it.invoice_transaction_id    	and
	th.transaction_type_code in (&apos;ADJUSTMENT&apos;, &apos;CIP ADJUSTMENT&apos;)	and
	th.book_type_code  	= :P_BOOK  
and	ad.asset_id = th.asset_id  				 	and 
	ad.asset_id = ah.asset_id					
and     	ah.date_effective     &lt;= th.date_effective			and
	nvl(ah.date_ineffective,sysdate) &gt; th.date_effective		and
	ah.category_id         = cat_bk.category_id			and
	ah.asset_type		&lt;&gt; &apos;EXPENSED&apos;
and     	cat_bk.book_type_code	= :P_BOOK and	dh.book_type_code	= :P_BOOK  and
	dh.asset_id		= th.asset_id		and
     	dh.date_effective	&lt;= th.date_effective			and
	nvl(dh.date_ineffective,sysdate) &gt; th.date_effective
and 
	dh.code_combination_id = glcc_fa.code_combination_id
and	ai_in.invoice_transaction_id_in = th.invoice_transaction_id	and
	ai_in.asset_id = th.asset_id				and
	ai_in.date_effective  &lt;= th.date_effective			and
	nvl(ai_in.date_ineffective,sysdate) &gt; th.date_effective
and     	decode(ah.asset_type,&apos;CIP&apos;,cat_bk.wip_clearing_account_ccid,
                                       cat_bk.asset_clearing_account_ccid)
 		 	       = glcc_ar.code_combination_id
and	ai_out.invoice_transaction_id_out (+) 
			= ai_in.invoice_transaction_id_in		and
	ai_out.asset_id (+) = ai_in.asset_id				and
	ai_out.asset_invoice_id (+) = ai_in.asset_invoice_id
and            mc.asset_id(+) = DECODE(:mrc_sob_type_code,&apos;R&apos;,ai_out.asset_id,NULL)
and         	mc.asset_invoice_id(+) = DECODE(:mrc_sob_type_code,&apos;R&apos;,ai_out.asset_invoice_id,NULL)
and	mc.invoice_transaction_id_in(+) = DECODE(:mrc_sob_type_code,&apos;R&apos;,ai_out.invoice_transaction_id_in,NULL)
and	mc.set_of_books_id(+) = :set_of_books_id
and	po_ai_in.vendor_id (+)	= ai_in.po_vendor_id
group by
	fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;fa_flex_bal_seg&apos;, &apos;SQLGL&apos;, &apos;GL#&apos;, glcc_fa.CHART_OF_ACCOUNTS_ID, NULL, glcc_fa.CODE_COMBINATION_ID, &apos;GL_BALANCING&apos;, &apos;Y&apos;, &apos;VALUE&apos;),
	fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;ar_flex_acct_seg&apos;, &apos;SQLGL&apos;, &apos;GL#&apos;, glcc_ar.CHART_OF_ACCOUNTS_ID, NULL, glcc_ar.CODE_COMBINATION_ID, &apos;GL_ACCOUNT&apos;, &apos;Y&apos;, &apos;VALUE&apos;),
	fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;fa_flex_cost_seg&apos;, &apos;SQLGL&apos;, &apos;GL#&apos;, glcc_fa.CHART_OF_ACCOUNTS_ID, NULL, glcc_fa.CODE_COMBINATION_ID, &apos;FA_COST_CTR&apos;, &apos;Y&apos;, &apos;VALUE&apos;),
        	lu.meaning,
	ad.asset_number||&apos; - &apos;||ad.description,
	po_ai_in.vendor_name,
	ai_in.invoice_number,
	ai_in.invoice_line_number||&apos; - &apos;||ai_in.ap_distribution_line_number,
	ai_in.description
union
select	fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;fa_flex_bal_seg&apos;, &apos;SQLGL&apos;, &apos;GL#&apos;, glcc_fa.CHART_OF_ACCOUNTS_ID, NULL, glcc_fa.CODE_COMBINATION_ID, &apos;GL_BALANCING&apos;, &apos;Y&apos;, &apos;VALUE&apos;)			comp_code,
	fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;ar_flex_acct_seg&apos;, &apos;SQLGL&apos;, &apos;GL#&apos;, glcc_ar.CHART_OF_ACCOUNTS_ID, NULL, glcc_ar.CODE_COMBINATION_ID, &apos;GL_ACCOUNT&apos;, &apos;Y&apos;, &apos;VALUE&apos;)			clearing_acc,
	fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;fa_flex_cost_seg&apos;, &apos;SQLGL&apos;, &apos;GL#&apos;, glcc_fa.CHART_OF_ACCOUNTS_ID, NULL, glcc_fa.CODE_COMBINATION_ID, &apos;FA_COST_CTR&apos;, &apos;Y&apos;, &apos;VALUE&apos;)			cost_center,
       	 lu.meaning				tr_type_code,
	ad.asset_number||&apos; - &apos;||ad.description		asset_number_desc,
	po_ai_in.vendor_name			po_vendor_name,
	ai_in.invoice_number			invoice_number,
	ai_in.invoice_line_number||&apos; - &apos;||ai_in.ap_distribution_line_number		line_num,
	ai_in.description				description,
	6,
	round(sum(decode(th.asset_id,
                                    ai_in.asset_id,
		nvl(ai_in.fixed_assets_cost,0),
                                    ai_out.asset_id,
		-nvl(ai_out.fixed_assets_cost,0),0)
	    * (dh.units_assigned / ah.units)),2)	cleared_cost
from	&amp;lp_fa_asset_invoices		ai_out,
        	po_vendors		po_ai_in,
        	fa_lookups		lu,
	fa_distribution_history	dh,
	gl_code_combinations    	glcc_fa,
	gl_code_combinations    	glcc_ar,
	fa_additions		ad,
       	 fa_asset_history        	ah,
	fa_category_books       	cat_bk,
	fa_transaction_headers	th,
	fa_invoice_transactions	it,
	&amp;lp_fa_asset_invoices		ai_in
where	it.book_type_code	= :P_BOOK  and
	it.transaction_type 	= &apos;INVOICE TRANSFER&apos;	 and
	nvl(ai_in.fixed_assets_cost,0) != 0
and	lu.lookup_code 	       = th.transaction_type_code and
	lu.lookup_type         = &apos;FAXOLTRX&apos;
and	th.date_effective between
		:PERIOD1_POD  and
		:PERIOD1_PCD  and 
	th.invoice_transaction_id = it.invoice_transaction_id    	and
	th.transaction_type_code in (&apos;ADJUSTMENT&apos;, &apos;CIP ADJUSTMENT&apos;)	and
	th.book_type_code  	= :P_BOOK  
and	ad.asset_id = th.asset_id  				 	and 
	ad.asset_id = ah.asset_id					
and    	 ah.date_effective     &lt;= th.date_effective			and
	nvl(ah.date_ineffective,sysdate) &gt; th.date_effective		and
	ah.category_id		= cat_bk.category_id	and
	ah.asset_type		&lt;&gt; &apos;EXPENSED&apos;
and     	cat_bk.book_type_code	= :P_BOOK
and	dh.book_type_code	= :P_BOOK  and
	dh.asset_id		= th.asset_id		and
     	dh.date_effective	&lt;= th.date_effective			and
	nvl(dh.date_ineffective,sysdate) &gt; th.date_effective
and 
	dh.code_combination_id = glcc_fa.code_combination_id
and	ai_in.invoice_transaction_id_in = th.invoice_transaction_id	and
	ai_in.date_effective  &lt;= th.date_effective			and
	nvl(ai_in.date_ineffective,sysdate) &gt; th.date_effective
and     	decode(ah.asset_type,&apos;CIP&apos;,cat_bk.wip_clearing_account_ccid,
                                    	cat_bk.asset_clearing_account_ccid)
		      = glcc_ar.code_combination_id
and	ai_out.invoice_transaction_id_out
			= ai_in.invoice_transaction_id_in	and
	ai_out.asset_invoice_id = ai_in.asset_invoice_id
and     	ai_in.po_vendor_id     = po_ai_in.vendor_id(+)
group by
	fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;fa_flex_bal_seg&apos;, &apos;SQLGL&apos;, &apos;GL#&apos;, glcc_fa.CHART_OF_ACCOUNTS_ID, NULL, glcc_fa.CODE_COMBINATION_ID, &apos;GL_BALANCING&apos;, &apos;Y&apos;, &apos;VALUE&apos;),
	fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;ar_flex_acct_seg&apos;, &apos;SQLGL&apos;, &apos;GL#&apos;, glcc_ar.CHART_OF_ACCOUNTS_ID, NULL, glcc_ar.CODE_COMBINATION_ID, &apos;GL_ACCOUNT&apos;, &apos;Y&apos;, &apos;VALUE&apos;),
	fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;fa_flex_cost_seg&apos;, &apos;SQLGL&apos;, &apos;GL#&apos;, glcc_fa.CHART_OF_ACCOUNTS_ID, NULL, glcc_fa.CODE_COMBINATION_ID, &apos;FA_COST_CTR&apos;, &apos;Y&apos;, &apos;VALUE&apos;),
        	lu.meaning,
	ad.asset_number||&apos; - &apos;||ad.description,
	po_ai_in.vendor_name,
	ai_in.invoice_number,
	ai_in.invoice_line_number||&apos; - &apos;||ai_in.ap_distribution_line_number,
	ai_in.description
order by
        4,1,2,3,5,6,7,8,9
</SQL_TEXT>
  <XDO_APPLICATION_SHORT_NAME>OFA</XDO_APPLICATION_SHORT_NAME>
  <XDO_DATA_SOURCE_CODE>FASCC_XML</XDO_DATA_SOURCE_CODE>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>AR</LANGUAGE>
    <REPORT_NAME>FA تقرير تسوية تصفية التكلفة (بتنسيق XML) - غير مدعم: محجوز للاستخدام الآجل</REPORT_NAME>
    <DESCRIPTION>Application: الأصول
Source: تقرير تسوية تصفية التكلفة (بتنسيق XML) - غير مدعم: محجوز للاستخدام الآجل
Short Name: FASCC_XML
DB package: FA_FASCC_XMLP_PKG</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>D</LANGUAGE>
    <REPORT_NAME>FA Anlagenbestand - Verrechnung - Abstimmung- Nicht unterstützt: Reserviert für zukünftige Verwendung</REPORT_NAME>
    <DESCRIPTION>Application: Anlagen
Source: Anlagenbestand - Verrechnung - Abstimmung (XML) - Nicht unterstützt: Reserviert für zukünftige Verwendung
Short Name: FASCC_XML
DB package: FA_FASCC_XMLP_PKG</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>F</LANGUAGE>
    <REPORT_NAME>FA Etat des rapprochements FA/GL- Non pris en charge : réservé pour une utilisation future</REPORT_NAME>
    <DESCRIPTION>Application: Assets
Source: Etat des rapprochements FA/GL (XML) - Non pris en charge : réservé pour une utilisation future
Short Name: FASCC_XML
DB package: FA_FASCC_XMLP_PKG</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>FA Cost Clearing Reconciliation - draft</REPORT_NAME>
    <DESCRIPTION>Application: Assets
Source: Cost Clearing Reconciliation Report (XML) - Not Supported: Reserved For Future Use
Short Name: FASCC_XML
DB package: FA_FASCC_XMLP_PKG</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>ZHS</LANGUAGE>
    <REPORT_NAME>FA 成本结算调节报表- 不支持：已保留供将来使用</REPORT_NAME>
    <DESCRIPTION>Application: 资产
Source: 成本结算调节报表 (XML) - 不支持：已保留供将来使用
Short Name: FASCC_XML
DB package: FA_FASCC_XMLP_PKG</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>BI Publisher</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>&amp;lp_fa_asset_invoices</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;lp_fa_asset_invoices_bas</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;lp_fa_books</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;lp_fa_books_bas</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:accounting_flex_structure</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:acct_bal_aprompt</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:acct_cc_aprompt</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:currency_code</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:lp_currency_code</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:lp_fa_asset_invoices</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:lp_fa_asset_invoices_bas</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:lp_fa_book_controls</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:lp_fa_books</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:lp_fa_books_bas</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:mrc_sob_type_code</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_book</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_ca_set_of_books_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_conc_request_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_min_precision</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_mrcsobtype</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_period1</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:period1_pc</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:period1_pcd</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:period1_pod</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:precision</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:rp_company_name</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:rp_data_found</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:rp_report_name</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:set_of_books_id</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <ANCHOR>:p_book</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>FA_BOOK_TYPE</LOV_NAME>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
book_type_code id,
book_type_code value,
book_type_name description
from
fa_book_controls_sec
order by book_type_code</LOV_QUERY_DSP>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>AR</LANGUAGE>
      <PARAMETER_NAME>الدفتر</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>D</LANGUAGE>
      <PARAMETER_NAME>AfA-Buch</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>Livre</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Book</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>ZHS</LANGUAGE>
      <PARAMETER_NAME>帐簿</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>2</SORT_ORDER>
    <DISPLAY_SEQUENCE>20</DISPLAY_SEQUENCE>
    <ANCHOR>:p_ca_set_of_books_id</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>FA_CA_SOB_CURRENCY</LOV_NAME>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
gsob.set_of_books_id id,
gsob.currency_code value,
gsob.name description
from
gl_sets_of_books gsob
where gsob.set_of_books_id in (
select set_of_books_id from fa_book_controls
where book_type_code=:$flex$.fa_book_type union all
select set_of_books_id from fa_mc_book_controls
where book_type_code=:$flex$.fa_book_type)
order by gsob.currency_code</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select currency_code from gl_sets_of_books where set_of_books_id = (select set_of_books_id from fa_book_controls where book_type_code=:$FLEX$.Book)</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>AR</LANGUAGE>
      <PARAMETER_NAME>عملة دفاتر الحسابات</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>D</LANGUAGE>
      <PARAMETER_NAME>Währung Buchungsstruktur</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>Devise de l&apos;entité comptable</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Set of Books Currency</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>ZHS</LANGUAGE>
      <PARAMETER_NAME>帐套币种</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>3</SORT_ORDER>
    <DISPLAY_SEQUENCE>30</DISPLAY_SEQUENCE>
    <ANCHOR>:p_period1</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>FA_PERIOD_NAME</LOV_NAME>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
period_name id,
period_name value,
null description
from
fa_deprn_periods
where book_type_code=:$flex$.fa_book_type
and period_counter&gt;(select min(dp2.period_counter)
from fa_deprn_periods dp2
where dp2.book_type_code=:$flex$.fa_book_type)
order by period_counter</LOV_QUERY_DSP>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>AR</LANGUAGE>
      <PARAMETER_NAME>الفترة</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>D</LANGUAGE>
      <PARAMETER_NAME>Periode</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>Période</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Period</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>ZHS</LANGUAGE>
      <PARAMETER_NAME>期间</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
  </PARAMETERS>
  <PARAMETER_DEPENDENCIES>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$FLEX$.Book</FLEX_BIND>
    <PARAMETER_NAME>Book</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>Set of Books Currency</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.fa_book_type</FLEX_BIND>
    <PARAMETER_NAME>Book</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>Period</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.fa_book_type</FLEX_BIND>
    <PARAMETER_NAME>Book</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>Set of Books Currency</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
  </PARAMETER_DEPENDENCIES>
  <TEMPLATES>
  </TEMPLATES>
  <DEFAULT_TEMPLATES>
  </DEFAULT_TEMPLATES>
  <UPLOAD_COLUMNS>
  </UPLOAD_COLUMNS>
  <UPLOAD_PARAMETERS>
  </UPLOAD_PARAMETERS>
  <UPLOAD_SQLS>
  </UPLOAD_SQLS>
  <UPLOAD_DEPENDENCIES>
  </UPLOAD_DEPENDENCIES>
 </REPORTS_ROW>
</REPORTS>
</ROOT>
