<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 Form 4797 - Gain From Disposition of 1250 Property - draft -->
 <REPORTS_ROW>
  <GUID>82288223F1AC3869E053B46B63588994</GUID>
  <SQL_TEXT>SELECT	
	--nvl(&amp;ACCT_FLEX_BAL_SEG,&apos;None&apos;)			   COMP_CODE,
	nvl(fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;comp_code_dsp&apos;, &apos;SQLGL&apos;, &apos;GL#&apos;, dhcc.CHART_OF_ACCOUNTS_ID, NULL, dhcc.CODE_COMBINATION_ID, &apos;GL_BALANCING&apos;, &apos;Y&apos;, &apos;VALUE&apos;),&apos;None&apos;)			   COMP_CODE_DSP1,
       	th.book_type_code					BOOK,
	ad.asset_number						ASSET,
	ad.asset_id						ASSET_ID,
	ROUND(sum(decode(ret.units, NULL,
	nvl(ret.proceeds_of_sale,0.00)*(dh.units_assigned/ah.units),
	nvl(ret.proceeds_of_sale,0.00)*(abs(dh.transaction_units)/ret.units))),:PRECISION)
								SALE,
	ROUND(sum(decode(ret.units, NULL,
	ret.cost_retired * (dh.units_assigned/ah.units),
	ret.cost_retired * (abs(dh.transaction_units)/ret.units))),:PRECISION)
								COST,
	ROUND(sum(decode(ret.units, NULL,
	ret.nbv_retired * (dh.units_assigned/ah.units),
	ret.nbv_retired * (abs(dh.transaction_units)/ret.units))),:PRECISION)
								NBVR,
ROUND(sum(Decode(Sign(ret.gain_loss_amount), 1,
	decode(ret.units, NULL,
	ret.gain_loss_amount * (dh.units_assigned/ah.units),
	ret.gain_loss_amount * (abs(dh.transaction_units)/ret.units)),
	0.00)),:PRECISION)							GLA,
ROUND(sum(Decode(Sign(Months_Between(ret.date_retired,
       bk.date_placed_in_service) - 12), -1,
	decode(ret.units, NULL,
	(ret.cost_retired - ret.nbv_retired)
	* (dh.units_assigned/ah.units),
	(ret.cost_retired - ret.nbv_retired)
	* (abs(dh.transaction_units)/ret.units)),	decode(ret.units, NULL,
	((ret.cost_retired - ret.nbv_retired) - ret.stl_deprn_amount)
	* (dh.units_assigned/ah.units),
	((ret.cost_retired - ret.nbv_retired) - ret.stl_deprn_amount)
	* (abs(dh.transaction_units)/ret.units)))),:PRECISION)
      								XCESS,
ROUND(sum(Decode(Sign(ret.gain_loss_amount),
	1, 	Decode (Sign(Months_Between(ret.date_retired,
	 bk.date_placed_in_service)-12), 
	   -1, 	         decode(ret.units, NULL,
		 (ret.gain_loss_amount - Least(ret.gain_loss_amount, 
	  	 (ret.cost_retired-ret.nbv_retired)))
		* (dh.units_assigned/ah.units),
	            (ret.gain_loss_amount -
		 Least(ret.gain_loss_amount, 	 	          (ret.cost_retired-ret.nbv_retired))) 		        * (abs(dh.transaction_units)/ret.units)),
	decode(ret.units, NULL, 		(ret.gain_loss_amount - 
		Least(ret.gain_loss_amount,
		   ( (ret.cost_retired-ret.nbv_retired) -
                 		       decode(ret.stl_deprn_amount,NULL,ret.cost_retired-ret.nbv_retired,
		                              &apos;0&apos;,ret.cost_retired-ret.nbv_retired, 
			         ret.stl_deprn_amount)     ) + 
( (ret.cost_retired - ret.nbv_retired) -
 ((ret.cost_retired - ret.nbv_retired) -
decode(ret.stl_deprn_amount, NULL,ret.cost_retired - ret.nbv_retired,
			&apos;0&apos;, ret.cost_retired - ret.nbv_retired, 
			ret.stl_deprn_amount))) *0.2
		   ))
		* (dh.units_assigned/ah.units),
	         (ret.gain_loss_amount - 
	          Least(ret.gain_loss_amount,
	         ((ret.cost_retired-ret.nbv_retired) - 
	         decode(ret.stl_deprn_amount,NULL,ret.cost_retired - ret.nbv_retired,
			&apos;0&apos;, ret.cost_retired - ret.nbv_retired,
			ret.stl_deprn_amount) )))
	* (abs(dh.transaction_units)/ret.units))),
	0.00)),:PRECISION)							CGAIN,
ROUND(sum(Decode(Sign(gain_loss_amount),
	1,Decode (Sign(Months_Between(ret.date_retired,
		     		 bk.date_placed_in_service)-12), -1,
		decode(ret.units, NULL, 			Least(ret.gain_loss_amount,(ret.cost_retired-ret.nbv_retired))
			    			* (dh.units_assigned/ah.units),
			Least(ret.gain_loss_amount,(ret.cost_retired-ret.nbv_retired))
					                  * (abs(dh.transaction_units)/ret.units)),
	decode(ret.units, NULL, 		(Least(ret.gain_loss_amount,
		       (   ((ret.cost_retired-ret.nbv_retired) -
            			 decode(ret.stl_deprn_amount,NULL, ret.cost_retired-ret.nbv_retired,
			  			 &apos;0&apos;, ret.cost_retired-ret.nbv_retired,
						  ret.stl_deprn_amount) )+
			(   (ret.cost_retired - ret.nbv_retired) - 
			(  ret.cost_retired - ret.nbv_retired -
			 decode(ret.stl_deprn_amount,NULL,ret.cost_retired-ret.nbv_retired,
			  				 &apos;0&apos;, ret.cost_retired-ret.nbv_retired,
			 				 ret.stl_deprn_amount) )   )   *.20) )  )
						* (dh.units_assigned/ah.units),
		(Least(ret.gain_loss_amount,
		           ((ret.cost_retired-ret.nbv_retired) -
         			  decode(ret.stl_deprn_amount,NULL,ret.cost_retired-ret.nbv_retired,
			 &apos;0&apos;, ret.cost_retired-ret.nbv_retired, ret.stl_deprn_amount) ))+((
          			 decode(ret.stl_deprn_amount,NULL,ret.cost_retired-ret.nbv_retired,
			  &apos;0&apos;, ret.cost_retired-ret.nbv_retired, ret.stl_deprn_amount) )*.20))
			* (abs(dh.transaction_units)/ret.units))),
		0.00)),:PRECISION)					 	ORD_INC,
ROUND(sum(Decode (Sign(ret.gain_loss_amount), -1,
	decode(ret.units, NULL,
	ret.gain_loss_amount * (dh.units_assigned/ah.units),
	ret.gain_loss_amount * (abs(dh.transaction_units)/ret.units)),
	0.00)),:PRECISION)							CLOSS,
	Decode (Sign(ret.gain_loss_amount), -1, :LOSS_NLS, :GAIN_NLS) GAIN_LOSS
--Added the below functions during DT Fix
	,FA_FAS445_XMLP_PKG.d_excess_1969formula(th.book_type_code, ad.asset_id, :BOOK_CLASS,
		ROUND(sum(Decode(Sign(Months_Between(ret.date_retired,
		   bk.date_placed_in_service) - 12), -1,
		decode(ret.units, NULL,
		(ret.cost_retired - ret.nbv_retired)
		* (dh.units_assigned/ah.units),
		(ret.cost_retired - ret.nbv_retired)
		* (abs(dh.transaction_units)/ret.units)),	decode(ret.units, NULL,
		((ret.cost_retired - ret.nbv_retired) - ret.stl_deprn_amount)
		* (dh.units_assigned/ah.units),
		((ret.cost_retired - ret.nbv_retired) - ret.stl_deprn_amount)
		* (abs(dh.transaction_units)/ret.units)))),:PRECISION),
		ROUND(sum(decode(ret.units, NULL,
		ret.cost_retired * (dh.units_assigned/ah.units),
		ret.cost_retired * (abs(dh.transaction_units)/ret.units))),:PRECISION),
		ROUND(sum(decode(ret.units, NULL,
		ret.nbv_retired * (dh.units_assigned/ah.units),
		ret.nbv_retired * (abs(dh.transaction_units)/ret.units))),:PRECISION)
	) D_EXCESS_1969
	,FA_FAS445_XMLP_PKG.d_excess_1962formula(th.book_type_code, ad.asset_id, :BOOK_CLASS,
		ROUND(sum(decode(ret.units, NULL,
		ret.cost_retired * (dh.units_assigned/ah.units),
		ret.cost_retired * (abs(dh.transaction_units)/ret.units))),:PRECISION),
		ROUND(sum(decode(ret.units, NULL,
		ret.nbv_retired * (dh.units_assigned/ah.units),
		ret.nbv_retired * (abs(dh.transaction_units)/ret.units))),:PRECISION),
		ROUND(sum(Decode(Sign(ret.gain_loss_amount), 1,
		decode(ret.units, NULL,
		ret.gain_loss_amount * (dh.units_assigned/ah.units),
		ret.gain_loss_amount * (abs(dh.transaction_units)/ret.units)),
		0.00)),:PRECISION),
		ROUND(sum(Decode(Sign(ret.gain_loss_amount),
		1, 	Decode (Sign(Months_Between(ret.date_retired,
		 bk.date_placed_in_service)-12), 
		   -1, 	         decode(ret.units, NULL,
			 (ret.gain_loss_amount - Least(ret.gain_loss_amount, 
			 (ret.cost_retired-ret.nbv_retired)))
			* (dh.units_assigned/ah.units),
					(ret.gain_loss_amount -
			 Least(ret.gain_loss_amount, 	 	          (ret.cost_retired-ret.nbv_retired))) 		        * (abs(dh.transaction_units)/ret.units)),
		decode(ret.units, NULL, 		(ret.gain_loss_amount - 
			Least(ret.gain_loss_amount,
			   ( (ret.cost_retired-ret.nbv_retired) -
								   decode(ret.stl_deprn_amount,NULL,ret.cost_retired-ret.nbv_retired,
										  &apos;0&apos;,ret.cost_retired-ret.nbv_retired, 
						 ret.stl_deprn_amount)     ) + 
	( (ret.cost_retired - ret.nbv_retired) -
	 ((ret.cost_retired - ret.nbv_retired) -
	decode(ret.stl_deprn_amount, NULL,ret.cost_retired - ret.nbv_retired,
				&apos;0&apos;, ret.cost_retired - ret.nbv_retired, 
				ret.stl_deprn_amount))) *0.2
			   ))
			* (dh.units_assigned/ah.units),
				 (ret.gain_loss_amount - 
				  Least(ret.gain_loss_amount,
				 ((ret.cost_retired-ret.nbv_retired) - 
				 decode(ret.stl_deprn_amount,NULL,ret.cost_retired - ret.nbv_retired,
				&apos;0&apos;, ret.cost_retired - ret.nbv_retired,
				ret.stl_deprn_amount) )))
		* (abs(dh.transaction_units)/ret.units))),
		0.00)),:PRECISION),
		ROUND(sum(Decode(Sign(gain_loss_amount),
		1,Decode (Sign(Months_Between(ret.date_retired,
						 bk.date_placed_in_service)-12), -1,
			decode(ret.units, NULL, 			Least(ret.gain_loss_amount,(ret.cost_retired-ret.nbv_retired))
								* (dh.units_assigned/ah.units),
				Least(ret.gain_loss_amount,(ret.cost_retired-ret.nbv_retired))
										  * (abs(dh.transaction_units)/ret.units)),
		decode(ret.units, NULL, 		(Least(ret.gain_loss_amount,
				   (   ((ret.cost_retired-ret.nbv_retired) -
							 decode(ret.stl_deprn_amount,NULL, ret.cost_retired-ret.nbv_retired,
							 &apos;0&apos;, ret.cost_retired-ret.nbv_retired,
							  ret.stl_deprn_amount) )+
				(   (ret.cost_retired - ret.nbv_retired) - 
				(  ret.cost_retired - ret.nbv_retired -
				 decode(ret.stl_deprn_amount,NULL,ret.cost_retired-ret.nbv_retired,
								 &apos;0&apos;, ret.cost_retired-ret.nbv_retired,
								 ret.stl_deprn_amount) )   )   *.20) )  )
							* (dh.units_assigned/ah.units),
			(Least(ret.gain_loss_amount,
					   ((ret.cost_retired-ret.nbv_retired) -
						  decode(ret.stl_deprn_amount,NULL,ret.cost_retired-ret.nbv_retired,
				 &apos;0&apos;, ret.cost_retired-ret.nbv_retired, ret.stl_deprn_amount) ))+((
						 decode(ret.stl_deprn_amount,NULL,ret.cost_retired-ret.nbv_retired,
				  &apos;0&apos;, ret.cost_retired-ret.nbv_retired, ret.stl_deprn_amount) )*.20))
				* (abs(dh.transaction_units)/ret.units))),
			0.00)),:PRECISION)
	) D_EXCESS_1962
	,FA_FAS445_XMLP_PKG.P_SECTION_1231_GAIN_1962_p P_SECTION_1231_GAIN_1962
	,FA_FAS445_XMLP_PKG.P_ORDINARY_INCOME_1962_p P_ORDINARY_INCOME_1962
	,FA_FAS445_XMLP_PKG.P_EXCESS_1969_HIDE_p P_EXCESS_1969_HIDE
	,FA_FAS445_XMLP_PKG.P_EXCESS_1969_p P_EXCESS_1969
--End of DT Fix
FROM	
	fa_additions				ad,
	fa_books				bk,
	fa_deprn_periods			dp,
	fa_retirements				ret,
	fa_system_controls			sc,
	fa_transaction_headers			th,
	fa_asset_history			ah,
	fa_distribution_history			dh,
	fa_category_book_defaults		cbd,
	fa_book_controls			bc,
	gl_code_combinations			dhcc
WHERE	
	dp.book_type_code	     = UPPER(:P_BOOK)                   AND
	dp.period_counter           &gt;= :PERIOD1_PC  AND
	dp.period_counter 	    &lt;= nvl(:PERIOD2_PC,
					dp.period_counter)
AND
	th.date_effective	&gt;= dp.period_open_date			AND
	th.date_effective	&lt;= nvl(dp.period_close_date,sysdate)	AND
	th.book_type_code	= UPPER(:P_BOOK)       			AND
	th.transaction_type_code in
				(&apos;FULL RETIREMENT&apos;, &apos;PARTIAL RETIREMENT&apos;)
AND
	ah.asset_id		= th.asset_id				AND
	ah.date_effective 	&lt;= th.date_effective			AND
	nvl(ah.date_ineffective,sysdate+1) &gt; th.date_effective
AND
	ret.transaction_header_id_in 	= th.transaction_header_id	AND
        	((UPPER(ret.retirement_type_code) like &apos;%SALE%&apos;)                OR
        	((ret.retirement_type_code is NULL) AND (ret.proceeds_of_sale &gt; 0)))
AND     	ret.status = &apos;PROCESSED&apos;
AND	bk.transaction_header_id_out	= th.transaction_header_id	AND
	bk.book_type_code		= UPPER(:P_BOOK)
AND
	cbd.category_id         	     = ah.category_id		AND
	cbd.book_type_code             	     = th.book_type_code	AND
	(bk.date_placed_in_service between cbd.start_dpis and 
				nvl(cbd.end_dpis,sysdate))		AND
	months_between (ret.date_retired, bk.date_placed_in_service) &gt; 
				nvl(cbd.capital_gain_threshold,12)	
AND
	ad.asset_id		= th.asset_id				AND
	ad.property_1245_1250_code = &apos;1250&apos;
AND
	dh.asset_id = th.asset_id				AND
dh.asset_id = th.asset_id				AND
	dh.book_type_code = bc.book_type_code 			AND
	dh.book_type_code = bc.distribution_source_book		AND
       (dh.retirement_id = ret.retirement_id 			OR
	(ret.date_effective &gt;= 	dh.date_effective  		AND
	 ret.date_effective &lt; nvl(dh.date_ineffective,sysdate)	AND
        ret.units is null))
AND	dhcc.code_combination_id = dh.code_combination_id
GROUP BY
	Sign(ret.gain_loss_amount),
	:Company_Name,
	:PERIOD1_PC ,
	:PERIOD2_PC,
	--&amp;ACCT_FLEX_BAL_SEG,
	fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;comp_code_dsp&apos;, &apos;SQLGL&apos;, &apos;GL#&apos;, dhcc.CHART_OF_ACCOUNTS_ID, NULL, dhcc.CODE_COMBINATION_ID, &apos;GL_BALANCING&apos;, &apos;Y&apos;, &apos;VALUE&apos;),
	th.book_type_code,
	ad.asset_number,
	ad.asset_id
ORDER BY 
/*        nvl(&amp;ACCT_FLEX_BAL_SEG,&apos;None&apos;),
	ad.asset_number*/
2, 1, 13, 4, 3, 5, 6, 7, 8, 9, 10, 11, 12
</SQL_TEXT>
  <DISABLED>Y</DISABLED>
  <XDO_APPLICATION_SHORT_NAME>OFA</XDO_APPLICATION_SHORT_NAME>
  <XDO_DATA_SOURCE_CODE>FAS445_XML</XDO_DATA_SOURCE_CODE>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>AR</LANGUAGE>
    <REPORT_NAME>FA نموذج 4797 - تقرير الربح من التصرف في الملكية 1250 (بتنسيق XML) - غير مدعم: محجوز للاستخدام الآجل</REPORT_NAME>
    <DESCRIPTION>Application: الأصول
Source: نموذج 4797 - تقرير الربح من التصرف في الملكية 1250 (بتنسيق XML) - غير مدعم: محجوز للاستخدام الآجل
Short Name: FAS445_XML
DB package: FA_FAS445_XMLP_PKG</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>D</LANGUAGE>
    <REPORT_NAME>FA Formular 4797 - Gewinn aus Veräußerung von Vermögen der Art 1250- Nicht unterstützt: Reserviert für zukünftige Verwendung</REPORT_NAME>
    <DESCRIPTION>Application: Anlagen
Source: Formular 4797 - Gewinn aus Veräußerung von Vermögen der Art 1250 (XML)  - Nicht unterstützt: Reserviert für zukünftige Verwendung
Short Name: FAS445_XML
DB package: FA_FAS445_XMLP_PKG</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>F</LANGUAGE>
    <REPORT_NAME>FA Form 4797 - Gain From Disposition of 1250 Property (USA)- Non pris en charge : réservé pour une utilisation future</REPORT_NAME>
    <DESCRIPTION>Application: Assets
Source: Form 4797 - Gain From Disposition of 1250 Property (USA) (XML) - Non pris en charge : réservé pour une utilisation future
Short Name: FAS445_XML
DB package: FA_FAS445_XMLP_PKG</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>FA Form 4797 - Gain From Disposition of 1250 Property - draft</REPORT_NAME>
    <DESCRIPTION>Application: Assets
Source: Form 4797 - Gain From Disposition of 1250 Property Report (XML) - Not Supported: Reserved For Future Use
Short Name: FAS445_XML
DB package: FA_FAS445_XMLP_PKG</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>ZHS</LANGUAGE>
    <REPORT_NAME>FA 表单 4797 - 1250 财产处理收益报表- 不支持：已保留供将来使用</REPORT_NAME>
    <DESCRIPTION>Application: 资产
Source: 表单 4797 - 1250 财产处理收益报表 (XML) - 不支持：已保留供将来使用
Short Name: FAS445_XML
DB package: FA_FAS445_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;acct_flex_bal_seg</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:acct_bal_aprompt</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:acct_cc_aprompt</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:book_class</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:cat_maj_rprompt</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:company_name</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:gain_nls</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:loss_nls</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_book</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_conc_request_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_excess_1969</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_excess_1969_hide</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_min_precision</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_ordinary_income_1962</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_period1</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_period2</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_section_1231_gain_1962</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:period1_fy</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>:period2_fy</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:period2_pc</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:period2_pcd</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:period2_pod</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:precision</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:print_debug</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:rp_acct_bal_lprompt</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>
  <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_TAX_BOOKS</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
where book_class=&apos;TAX&apos;
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_period1</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>FA_PERIOD_NAME_TAX</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_tax_books
and period_counter&gt;
(select min(dp2.period_counter)
from fa_deprn_periods dp2
where dp2.book_type_code=:$flex$.fa_tax_books)
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>Von Periode</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>De la période</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>From Period</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_period2</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>FA_PERIOD_TAX_TO</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_tax_books and
period_counter&gt;=(select period_counter from
fa_deprn_periods where book_type_code=
:$flex$.fa_tax_books and period_name=
:$flex$.fa_period_name_tax)
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>Bis Periode</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>A la période</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>To Period</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>ZHS</LANGUAGE>
      <PARAMETER_NAME>至期间</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>
