<?xml version="1.0" encoding="UTF-8"?>
<CLEARANCE0 desc_eng="Employees " desc_thai="รหัสพนักงาน" editcheck="true" mainhelp="CLEARANCE0HELP" referhelp="CLEARANCE0HELP" mainkey="CLEARANCE_NO" fieldsystem="*" protype="table" deleteflag="true"  dependlevel="false" >
    <FIELD>
        <EMPLOYEEID lang="A" encrypt="false" log="false" type="String">
            <KEY>1</KEY>
            <WIDTH>15</WIDTH>
			<RELATION>MEMPLOYEE</RELATION>
            <DESC_ENG>Employee ID</DESC_ENG>
            <DESC_THAI>รหัสพนักงาน</DESC_THAI>
            <COMPONENT type="Text">
                <SIZE>15</SIZE>
                <MAXSIZE>15</MAXSIZE>
                <ALT_ENG>Employee ID</ALT_ENG>
                <ALT_THAI>รหัสพนักงาน</ALT_THAI>
            </COMPONENT>
            <REQUIRE>true</REQUIRE>
        </EMPLOYEEID>
        
        <COMPANYID lang="A" encrypt="false" log="false" type="String">
            <KEY>2</KEY>
            <WIDTH>10</WIDTH>
            <RELATION>MCOMPANY</RELATION>
            <DESC_ENG>Company ID</DESC_ENG>
            <DESC_THAI>รหัสบริษัท</DESC_THAI>
            <COMPONENT type="Text">
                <SIZE>5</SIZE>
                <MAXSIZE>5</MAXSIZE>
                <ALT_ENG>Company ID</ALT_ENG>
                <ALT_THAI>รหัสบริษัท</ALT_THAI>
                <READONLY>TRUE</READONLY>
            </COMPONENT>
            <REQUIRE>true</REQUIRE>
        </COMPANYID>

		<CLEARANCE_NO lang="A" encrypt="false" log="false" type="AutoNumber">
            <KEY>3</KEY>
            <WIDTH>15</WIDTH>
            <DESC_ENG>Clearance No.</DESC_ENG>
            <DESC_THAI>รหัส Advance</DESC_THAI>
            <COMPONENT type="Text">
                <SIZE>15</SIZE>
                <MAXSIZE>15</MAXSIZE>
                <ALT_ENG>Clearance No.</ALT_ENG>
                <ALT_THAI>รหัส Clearance</ALT_THAI>
            </COMPONENT>
            <REQUIRE>true</REQUIRE>
        </CLEARANCE_NO>

		<ADVANCE_NO lang="A" encrypt="false" log="false" type="String">
            <WIDTH>15</WIDTH>
            <DESC_ENG>Advance No.</DESC_ENG>
            <DESC_THAI>รหัส Advance</DESC_THAI>
            <COMPONENT type="Text">
                <SIZE>15</SIZE>
                <MAXSIZE>15</MAXSIZE>
                <ALT_ENG>Advance No.</ALT_ENG>
                <ALT_THAI>รหัส Clearance</ALT_THAI>
            </COMPONENT>
            <REQUIRE>true</REQUIRE>
        </ADVANCE_NO>

		<APPROVE_DATE lang="A" encrypt="false" log="false" type="String">
            <WIDTH>15</WIDTH>
            <DESC_ENG>Approve Date</DESC_ENG>
            <DESC_THAI>วันที่อนุมัติ</DESC_THAI>
            <COMPONENT type="Text">
                <SIZE>15</SIZE>
                <MAXSIZE>15</MAXSIZE>
                <ALT_ENG>Approve Date</ALT_ENG>
                <ALT_THAI>วันที่อนุมัติ</ALT_THAI>
            </COMPONENT>
            <REQUIRE>true</REQUIRE>
        </APPROVE_DATE>

		<CLEARING_DATE lang="A" encrypt="false" log="false" type="String">
            <WIDTH>15</WIDTH>
            <DESC_ENG>Clearing Date</DESC_ENG>
            <DESC_THAI>วันที่ชำระ</DESC_THAI>
            <COMPONENT type="Text">
                <SIZE>15</SIZE>
                <MAXSIZE>15</MAXSIZE>
                <ALT_ENG>Clearing Date</ALT_ENG>
                <ALT_THAI>วันที่ชำระ</ALT_THAI>
            </COMPONENT>
            <REQUIRE>true</REQUIRE>
        </CLEARING_DATE>

				<TRANFER_DATE lang="A" encrypt="false" log="false" type="String">
            <WIDTH>15</WIDTH>
            <DESC_ENG>Tranfer Date</DESC_ENG>
            <DESC_THAI>Tranfer Date</DESC_THAI>
            <COMPONENT type="Text">
                <SIZE>15</SIZE>
                <MAXSIZE>15</MAXSIZE>
                <ALT_ENG>Tranfer Date</ALT_ENG>
                <ALT_THAI>Tranfer Date</ALT_THAI>
            </COMPONENT>
            <REQUIRE>true</REQUIRE>
        </TRANFER_DATE>

		<CLEARANCE_AMOUNT lang="A" encrypt="false" log="false" type="Double">
            <WIDTH>15</WIDTH>
            <DESC_ENG>Amount</DESC_ENG>
            <DESC_THAI>จำนวนเงินรวม</DESC_THAI>
            <COMPONENT type="Text">
                <SIZE>15</SIZE>
                <MAXSIZE>15</MAXSIZE>
                <ALT_ENG>Amount</ALT_ENG>
                <ALT_THAI>จำนวนเงินรวม</ALT_THAI>
            </COMPONENT>
            <REQUIRE>true</REQUIRE>
        </CLEARANCE_AMOUNT>

		<ADVANCE_AMOUNT lang="A" encrypt="false" log="false" type="Double">
            <WIDTH>15</WIDTH>
            <DESC_ENG>Amount</DESC_ENG>
            <DESC_THAI>จำนวนเงินรวม</DESC_THAI>
            <COMPONENT type="Text">
                <SIZE>15</SIZE>
                <MAXSIZE>15</MAXSIZE>
                <ALT_ENG>Amount</ALT_ENG>
                <ALT_THAI>จำนวนเงินรวม</ALT_THAI>
            </COMPONENT>
            <REQUIRE>true</REQUIRE>
        </ADVANCE_AMOUNT>

		<ADVANCE_STATUS lang="A" encrypt="false" log="false" type="String">
            <WIDTH>15</WIDTH>
            <DESC_ENG>Status</DESC_ENG>
            <DESC_THAI>สถานะการชำระ</DESC_THAI>
            <COMPONENT type="Text">
                <SIZE>15</SIZE>
                <MAXSIZE>15</MAXSIZE>
                <ALT_ENG>Status</ALT_ENG>
                <ALT_THAI>สถานะการชำระ</ALT_THAI>
				<VALIDCODE>ADVANCE_STATUS</VALIDCODE>
            </COMPONENT>
            <REQUIRE>true</REQUIRE>
        </ADVANCE_STATUS>

				<ADVANCE_TYPE lang="A" encrypt="false" log="false" type="String">
            <WIDTH>15</WIDTH>
            <DESC_ENG>Advance Type</DESC_ENG>
            <DESC_THAI>ประเภทการเบิกจ่าย</DESC_THAI>
            <COMPONENT type="Text">
                <SIZE>15</SIZE>
                <MAXSIZE>15</MAXSIZE>
                <ALT_ENG>Advance Type</ALT_ENG>
                <ALT_THAI>ประเภทการเบิกจ่าย</ALT_THAI>
            </COMPONENT>
            <REQUIRE>true</REQUIRE>
        </ADVANCE_TYPE>

		<CLEARANCE lang="A" encrypt="false" log="false" type="String">
            <WIDTH>15</WIDTH>
            <DESC_ENG>Clearance</DESC_ENG>
            <DESC_THAI>รหัสการชำระ</DESC_THAI>
            <COMPONENT type="Text">
                <SIZE>15</SIZE>
                <MAXSIZE>15</MAXSIZE>
                <ALT_ENG>Clearance</ALT_ENG>
                <ALT_THAI>รหัสการชำระ</ALT_THAI>
            </COMPONENT>
            <REQUIRE>true</REQUIRE>
        </CLEARANCE>

		<REMARK lang="A" encrypt="false" log="false" type="String">
			<WIDTH>200</WIDTH>
			<DESC_ENG>Remark</DESC_ENG>
			<DESC_THAI>หมายเหตุ</DESC_THAI>
			<COMPONENT type="textarea">
				<MAXSIZE>200</MAXSIZE>
				<SIZE>70</SIZE>
				<READONLY>false</READONLY>
				<ALT_ENG>Remark</ALT_ENG>
				<ALT_THAI>หมายเหตุ</ALT_THAI>
				<LINES>3</LINES>
				<SIZECHAR>50</SIZECHAR>
			</COMPONENT>
		</REMARK>

		<COSTCENTER lang="A" encrypt="false" log="true" type="String">
            <WIDTH>10</WIDTH>
            <RELATION>MCOSTCENTER0</RELATION>
            <DESC_ENG>Cost Center</DESC_ENG>
            <DESC_THAI>รหัส Cost Center</DESC_THAI>
            <COMPONENT type="text">
                <MAXSIZE>10</MAXSIZE>
                <SIZE>10</SIZE>
                <ALT_ENG>Cost Center</ALT_ENG>
                <ALT_THAI>รหัส Cost Center</ALT_THAI>
            </COMPONENT>
            <GROUP>testprocess</GROUP>
        </COSTCENTER>

		<ADVANCE_RETURN lang="A" encrypt="false" log="false" type="Double">
            <WIDTH>30</WIDTH>
            <DESC_ENG>Return</DESC_ENG>
            <DESC_THAI>Return</DESC_THAI>
            <COMPONENT type="Text">
                <SIZE>30</SIZE>
                <MAXSIZE>30</MAXSIZE>
                <ALT_ENG>Return</ALT_ENG>
                <ALT_THAI>Return</ALT_THAI>
            </COMPONENT>
            <REQUIRE>true</REQUIRE>
        </ADVANCE_RETURN>

		<ADVANCE_REIMBURSE lang="A" encrypt="false" log="false" type="Double">
            <WIDTH>30</WIDTH>
            <DESC_ENG>Reimburse</DESC_ENG>
            <DESC_THAI>เงินจ่ายเพิ่ม</DESC_THAI>
            <COMPONENT type="Text">
                <SIZE>30</SIZE>
                <MAXSIZE>30</MAXSIZE>
                <ALT_ENG>Reimburse</ALT_ENG>
                <ALT_THAI>เงินจ่ายเพิ่ม</ALT_THAI>
            </COMPONENT>
            <REQUIRE>true</REQUIRE>
        </ADVANCE_REIMBURSE>

		<ADVANCE_FIRST_TRIP lang="A" encrypt="false" log="false" type="Double">
            <WIDTH>30</WIDTH>
            <DESC_ENG>Amount First Trip</DESC_ENG>
            <DESC_THAI>Amount First Trip</DESC_THAI>
            <COMPONENT type="Text">
                <SIZE>30</SIZE>
                <MAXSIZE>30</MAXSIZE>
                <ALT_ENG>Amount First Trip</ALT_ENG>
                <ALT_THAI>Amount First Trip</ALT_THAI>
            </COMPONENT>
            <REQUIRE>true</REQUIRE>
        </ADVANCE_FIRST_TRIP>

		<FIRST_TRIP lang="A" encrypt="false" log="false" type="String">
            <WIDTH>15</WIDTH>
            <DESC_ENG>First Trip</DESC_ENG>
            <DESC_THAI>First Trip</DESC_THAI>
            <COMPONENT type="Text">
                <SIZE>15</SIZE>
                <MAXSIZE>15</MAXSIZE>
                <ALT_ENG>First Trip</ALT_ENG>
                <ALT_THAI>First Trip</ALT_THAI>
				<VALIDCODE>YES</VALIDCODE>
            </COMPONENT>
            <REQUIRE>true</REQUIRE>
        </FIRST_TRIP>
        
    </FIELD>
    <RELATION>   

		<CLEARANCE1>
            <PARENT>CLEARANCE0.EMPLOYEEID</PARENT>
            <PARENT>CLEARANCE0.COMPANYID</PARENT>
            <PARENT>CLEARANCE0.CLEARANCE_NO</PARENT>
            <CHILD>CLEARANCE1.EMPLOYEEID</CHILD>
            <CHILD>CLEARANCE1.COMPANYID</CHILD>
            <CHILD>CLEARANCE1.CLEARANCE_NO</CHILD>
        </CLEARANCE1>
		
		<CLEARANCE_OTHER_EXPENSE>
            <PARENT>CLEARANCE0.EMPLOYEEID</PARENT>
            <PARENT>CLEARANCE0.COMPANYID</PARENT>
            <PARENT>CLEARANCE0.CLEARANCE_NO</PARENT>
            <CHILD>CLEARANCE_OTHER_EXPENSE.EMPLOYEEID</CHILD>
            <CHILD>CLEARANCE_OTHER_EXPENSE.COMPANYID</CHILD>
            <CHILD>CLEARANCE_OTHER_EXPENSE.CLEARANCE_NO</CHILD>
        </CLEARANCE_OTHER_EXPENSE>

		<MEMPLOYEE>
            <PARENT>CLEARANCE0.EMPLOYEEID</PARENT>
            <PARENT>CLEARANCE0.COMPANYID</PARENT>
            <CHILD>MEMPLOYEE.EMPLOYEEID</CHILD>
            <CHILD>MEMPLOYEE.COMPANYID</CHILD>
        </MEMPLOYEE>

		<MCOSTCENTER0 mode="1">
            <PARENT>CLEARANCE0.COSTCENTER</PARENT>
            <PARENT>CLEARANCE0.COMPANYID</PARENT>
            <CHILD>MCOSTCENTER0.COSTCENTERID</CHILD>
            <CHILD>MCOSTCENTER0.COMPANYID</CHILD>
        </MCOSTCENTER0>


    </RELATION>
</CLEARANCE0>
