<?xml version="1.0" encoding="UTF-8"?>
<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="cash-management" package="com.axelor.apps.cash.management.db"/>
  
  <entity name="Forecast" lang="java">
	
	<many-to-one name="company" ref="com.axelor.apps.base.db.Company" required="true" title="Company" />
	<many-to-one name="bankDetails" ref="com.axelor.apps.base.db.BankDetails" title="Bank" required="true"/>
	<many-to-one name="forecastReason" ref="com.axelor.apps.cash.management.db.ForecastReason" required="true" title="Reason" />
	<integer name="typeSelect" selection="iaccount.payment.mode.in.out.select" title="Type" required="true"/>
	<decimal name="amount" title="Amount"/>
	<date name="estimatedDate" title="Estimated date"/>
	<string name="comments" title="Comments" large="true"/>
	<integer name="realizedSelect" selection="forecast.realized.select" title="Realized" default="2"/>
	<many-to-one name="forecastGenerator" ref="com.axelor.apps.cash.management.db.ForecastGenerator"/>
	
	<extra-code><![CDATA[

		
		public static final int REALISED_SELECT_YES = 1;
		public static final int REALISED_SELECT_NO = 2;
		public static final int REALISED_SELECT_AUTO = 3;
	
	
	]]></extra-code>
  </entity>
  
</domain-models>