<DBXML>

	<TABLE name="Mcompany_prr312" status="" central="true" out="inquiry" rname="Mcompany">
		<FIELD>companyid</FIELD>
		<FIELD>tname</FIELD>
		<FIELD>ename</FIELD>
		<ORDER>
				<FIELD>companyid</FIELD>
		</ORDER>
	</TABLE>

	<TABLE name="Report_prr312" status="" central="false" out="inquiry" >
		<FIELD>companyid</FIELD>
		<FIELD>inc_type</FIELD>
		<FIELD>formulaid</FIELD>
		<FIELD>tdesc</FIELD>
		<FIELD>cur_amount</FIELD>
		<FIELD>his_amount</FIELD>
		<ORDER>
			<FIELD>case when formulaid like 'WAGE%' and SUBSTR(INC_TYPE,0,1)='1' then 0 when formulaid in ('F001') then 1 else 2 end,formulaid</FIELD>
		</ORDER>
	</TABLE>
	
</DBXML>
