<?xml version="1.0" ?>
<domain-models xmlns="http://axelor.com/xml/ns/domain-models"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://axelor.com/xml/ns/domain-models http://axelor.com/xml/ns/domain-models/domain-models_5.2.xsd">

     <module name="human-resource" package="com.axelor.apps.hr.db"/>

    <entity name="EmployeeBonusMgtLine" lang="java" >
    
	    <many-to-one name="employee" ref="com.axelor.apps.hr.db.Employee" title="Employee"/>
	    <decimal name="amount" title="Amount" />
	    <decimal name="coef" title="Bonus coefficient" />
	    <many-to-one name="weeklyPlanning" ref="com.axelor.apps.base.db.WeeklyPlanning" title="Presence" />
	    <date name="seniorityDate" title="Seniority date" />
	    <many-to-one name="employeeBonusMgt" ref="com.axelor.apps.hr.db.EmployeeBonusMgt" title="Employee bonus mgt" />
	     <many-to-one name="payrollPreparation" ref="com.axelor.apps.hr.db.PayrollPreparation" title="Payroll preparation" />
	    <integer name="statusSelect" title="Status" selection="hr.employee.bonus.mgt.line.status.select" readonly="true"/>

	    <extra-code>
			<![CDATA[
				public static final Integer STATUS_CALCULATED = 1;
				public static final Integer STATUS_ANOMALY = 2;
			]]>
		</extra-code>
    </entity>

</domain-models>
