<?xml version="1.0" encoding="UTF-8"?>
<REPORTXML>
	<DATAMANAGER>EPAYSLIP_HISTORY</DATAMANAGER>
	<REPORTHEADER tdesc="รายงานใบแสดงเงินเดือน (e-Payslip)" edesc="e-Payslip"/>
	<LINKTABLE>
		<FIELD>memployee</FIELD>
	</LINKTABLE>
	<HELP>
	</HELP>
	<FIXFILTER>
		<FIELD tablename="memployee" value="employeeid in(select employeeid from tpy_his0)"></FIELD>
	</FIXFILTER>
	<VFIELD>

		<FIELD type="String" size="50">memployee.tpy_his0$inccaption01</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$inccaption02</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$inccaption03</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$inccaption04</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$inccaption05</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$inccaption06</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$inccaption07</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$inccaption08</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$inccaption09</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$inccaption10</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$inccaption11</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$inccaption12</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$inccaption13</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$inccaption14</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$inccaption15</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$inccaption16</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$inccaption17</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$inccaption18</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$inccaption19</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$inccaption20</FIELD>

		<FIELD type="String" size="50">memployee.tpy_his0$incformula01</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$incformula02</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$incformula03</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$incformula04</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$incformula05</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$incformula06</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$incformula07</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$incformula08</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$incformula09</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$incformula10</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$incformula11</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$incformula12</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$incformula13</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$incformula14</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$incformula15</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$incformula16</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$incformula17</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$incformula18</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$incformula19</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$incformula20</FIELD>

		<FIELD type="String" size="50">memployee.tpy_his0$expcaption01</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$expcaption02</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$expcaption03</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$expcaption04</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$expcaption05</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$expcaption06</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$expcaption07</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$expcaption08</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$expcaption09</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$expcaption10</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$expcaption11</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$expcaption12</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$expcaption13</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$expcaption14</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$expcaption15</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$expcaption16</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$expcaption17</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$expcaption18</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$expcaption19</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$expcaption20</FIELD>

		<FIELD type="String" size="50">memployee.tpy_his0$expformula01</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$expformula02</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$expformula03</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$expformula04</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$expformula05</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$expformula06</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$expformula07</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$expformula08</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$expformula09</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$expformula10</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$expformula11</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$expformula12</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$expformula13</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$expformula14</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$expformula15</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$expformula16</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$expformula17</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$expformula18</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$expformula19</FIELD>
		<FIELD type="String" size="50">memployee.tpy_his0$expformula20</FIELD>
		<FIELD type="String" size="50">tpy_his0.ot1</FIELD>
		<FIELD type="String" size="50">tpy_his0.ot5</FIELD>
		<FIELD type="String" size="50">tpy_his0.ot15</FIELD>
		<FIELD type="String" size="50">tpy_his0.ot2</FIELD>
		<FIELD type="String" size="50">tpy_his0.ot3</FIELD>
		<FIELD type="String" size="50">tpy_his0.absent</FIELD>
		<FIELD type="String" size="50">tpy_his0.lateh</FIELD>
		<FIELD type="String" size="50">tpy_his0.shift</FIELD>

		<FIELD type="String" size="50">memployee.salary_ytd</FIELD>
		<FIELD type="String" size="50">memployee.other_income_ytd</FIELD>
		<FIELD type="String" size="50">memployee.other_deduct_ytd</FIELD>
		<FIELD type="String" size="50">memployee.tax_ytd</FIELD>
		<FIELD type="String" size="50">memployee.pvf_ytd</FIELD>
		<FIELD type="String" size="50">memployee.social_ytd</FIELD>
		<FIELD type="String" size="50">memployee.emp_pvf</FIELD>
		<FIELD type="String" size="50">memployee.com_pvf</FIELD>
		<FIELD type="String" size="100">memployee.fullname</FIELD>
		<FIELD type="String" size="100">memployee.paymentdate</FIELD>
		<FIELD type="String" size="100">memployee.salatype_enddate</FIELD>

		<FIELD type="String" size="100">mbranch.tfulladdr</FIELD>
		<FIELD type="String" size="100">mbranch.efulladdr</FIELD>
		<FIELD type="String" size="100">mbranch.epaysignature</FIELD>

	</VFIELD>
	<GROUP>
	</GROUP>
	<REFER_LANG>TRUE</REFER_LANG>
	<REQUIRED_FOUND>FALSE</REQUIRED_FOUND>
	<OPTION_REQUIRE tdesc="กรุณาใส่เงื่อนไขในอ็อปชั่นก่อน" edesc="Please input condition in Option">true</OPTION_REQUIRE>
	<TEMPLATE>
		<FIELD name="EPAYSLIP_HISTORY.jasper" tdesc="รายงานใบแสดงเงินเดือน (e-Payslip)" edesc="e-Payslip"/>
	</TEMPLATE>
	<COMPONENT link="EPAYSLIP_HISTORY">
		<FIELD type="list"  name="PRGCODE" desc="Paroll Group" size="1" table="PAYROLL_GROUPHELP,CODEID,PAYROLL_DESC, ,CODEID"></FIELD>
		<FIELD type="hidden" name="STATE" desc="State" value="History"></FIELD>
		<FIELD type="hidden" name="PERIOD_MONTH" desc="Period Month" value=""></FIELD>
		<FIELD type="hidden" name="PERIOD_YEAR" desc="Period Year" value=""></FIELD>
		<FIELD type="hidden" name="FILTERDATE" desc="Filter Date" value=""></FIELD>
	</COMPONENT>
</REPORTXML>
