<?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="PayVoucherElementToPay" sequential="true" lang="java">
	
	<integer name="sequence" title="Seq." />
	<many-to-one name="moveLine" ref="com.axelor.apps.account.db.MoveLine" title="Move line" readonly="true"/>
	<decimal name="totalAmount" title="Total amount" readonly="true"/>
	<decimal name="remainingAmount" title="Amount remaining before cashing" readonly="true"/>
	
	<many-to-one name="moveLineGenerated" ref="com.axelor.apps.account.db.MoveLine" title="Move Line generated" readonly="true"/>
	<many-to-one name="paymentVoucher" ref="com.axelor.apps.account.db.PaymentVoucher" title="Payment" readonly="true"/>
	<many-to-one name="currency" ref="com.axelor.apps.base.db.Currency" title="Currency"/>
	<decimal name="amountToPayCurrency" title="Imput. amount in currency"/>
	<decimal name="amountToPay" title="Imput amount"/>

	<decimal name="remainingAmountAfterPayment" title="Remaining to pay after cashing" readonly="true"/>

  </entity>

</domain-models>