<?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="account" package="com.axelor.apps.account.db"/>

  <entity name="PaymentMode" lang="java" cacheable="true">

    <string name="name" required="true" unique="true" title="Label" translatable="true"/>
    <string name="code" required="true" title="Code"/>
  	<integer name="typeSelect" title="Type" selection="iaccount.payment.mode.type.select" />
  	<integer name="inOutSelect" title="In / Out" selection="iaccount.payment.mode.in.out.select" />
  	
  	<extra-code><![CDATA[
	
	   	// TYPE
		public static final int TYPE_OTHER = 1;
		public static final int TYPE_DD = 2;
		public static final int TYPE_IPO = 3;
		public static final int TYPE_IPO_CHEQUE = 4;
		public static final int TYPE_CASH = 5;
		public static final int TYPE_BANK_CARD = 6;
		public static final int TYPE_CHEQUE = 7;
		public static final int TYPE_WEB = 8;
		public static final int TYPE_TRANSFER = 9;
	
		// Sales or purchase
		public static final int SALES = 1;
		public static final int PURCHASES = 2;
		
		// IN OUT SELECT
		public static final int IN = 1;
		public static final int OUT = 2;
		
	]]></extra-code>
  
  </entity>

</domain-models>
