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

	<entity name="VehicleContract" lang="java" cacheable="true">
		<string name="name" title="Name" />
		<boolean name="active" title="Active" />
		<date name="startDate" title="Contract Start date" />
		<date name="expiryDate" title="Contract Expiration Date" />
		<integer name="daysLeft" title="Warning Date" />
		<many-to-one name="insurerPartner" ref="com.axelor.apps.base.db.Partner" title="Vendor" />
		<many-to-one name="purchaserPartner" ref="com.axelor.apps.base.db.Partner" title="Contractor" />
		<integer name="typeSelect" title="Type" selection="fleet.vehicle.cost.type.select" />
		<string name="reference" title="Contract Reference" />
		<integer name="statusSelect" title="Status" selection="fleet.vehicle.contract.status.select"/>
		<string name="notes" title="Notes" large="true" />
		<decimal name="recurringCost" title="Recurring Cost" />
		<integer name="costFrequencySelect" title="Recurring Cost Frequency" selection="fleet.vehicle.contract.cost.frequency.select" />
		<one-to-many name="vehicleServiceList" ref="com.axelor.apps.fleet.db.VehicleService"/>		
		<decimal name="totalCost" title="Total cost" />
		<decimal name="activationCost" title="Activation Cost" />
		<many-to-one name="vehicle" ref="Vehicle" />
		<date name="invoiceDate" title="Invoice Date" />
	</entity>

</domain-models>