<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<object-views xmlns="http://axelor.com/xml/ns/object-views"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://axelor.com/xml/ns/object-views http://axelor.com/xml/ns/object-views/object-views_5.2.xsd">
    
    <!--  Account Invoice Dashboard  -->    
    
	<dashboard title="Invoice Dashboard" name="account.invoice.dashboard.sample" width="large">
		 <dashlet action="dashlet.account.invoice.summary"   height="350" canSearch="true"/>
		 <dashlet action="dashlet.invoiced.turnover.ytd.vs.lastyear"   height="350" canSearch="true"/>    	
		 <dashlet action="dashlet.invoice.turnover.cust.history"   height="350" canSearch="true"/>
		 <dashlet action="dashlet.invoice.prod.qty.sold.history"   height="350" canSearch="true"/>
		 <dashlet action="dashlet.invoice.total.revenue.by.product"   height="350" canSearch="true"/>
		 <dashlet action="dashlet.total.revenue.by.geo.region"   height="350" canSearch="true"/>
		 <dashlet action="dashlet.prod.qty.suppl.invoices.last.12m" canSearch="true" height="350"/>
		 <dashlet action="dashlet.prod.turnover.suppl.invoices.last.12m" canSearch="true" height="350"/>
		 <dashlet action="dashlet.supplier.invoices.per.month" canSearch="true" height="350"/>
	   	 <dashlet action="dashlet.supplier.invoices.unpaid" canSearch="true" height="350" colSpan="12"/>
	   	 <dashlet action="dashlet.supplier.invoices.due" canSearch="true" height="350" colSpan="12"/>
		 <dashlet action="dashlet.customer.invoices.to.collect"   height="350" canSearch="true" colSpan="12"/>
		 <dashlet action="dashlet.invoice.sale.amount.by.month"  height="350"/>
		 <dashlet action="dashlet.invoice.sale.amount.by.currency"  height="350"/>
		 <dashlet action="dashlet.invoice.sale.paymentCondition.distribution"  height="350"/>
		 <dashlet action="dashlet.invoice.purchase.amount.by.month"  height="350"/>
		 <dashlet action="dashlet.invoice.purchase.amount.by.currency"  height="350"/>
		 <dashlet action="dashlet.invoice.purchase.paymentCondition.distribution"  height="350"/>
		 <dashlet action="dashlet.invoice.sale.refund.situation"   height="350"/>
		 <dashlet action="dashlet.invoice.sale.situation"   height="350"/>   
		 <dashlet action="dashlet.invoice.purchase.situation"   height="350"/>
		 <dashlet action="dashlet.paymentVoucher.customer.paymentMode.distribution.nbr"   height="350" canSearch="true"/>
		 <dashlet action="dashlet.paymentVoucher.customer.paymentMode.distribution.amount"   height="350" canSearch="true"/>
		 <dashlet action="dashlet.paymentVoucher.customer.paymentMode.by.amount"   height="350" canSearch="true"/>
	</dashboard>    

	
	<dashboard title="Invoice Dashboard" name="account.sale.invoice.dashboard.1" width="large">
		<dashlet action="dashlet.customer.invoices.to.collect"   height="350" canSearch="true" colSpan="12"/>
		<dashlet action="dashlet.invoice.turnover.cust.history"   height="350" canSearch="true" />
		<dashlet action="dashlet.invoice.prod.qty.sold.history"   height="350" canSearch="true" />
		<dashlet action="dashlet.invoice.total.revenue.by.product"   height="350" canSearch="true" />
		<dashlet action="dashlet.total.revenue.by.geo.region"   height="350" canSearch="true" />
		<dashlet action="dashlet.invoiced.turnover.ytd.vs.lastyear"   height="350" canSearch="true" />
		<dashlet action="dashlet.invoice.sale.refund.situation"   height="350" canSearch="true" />
		<dashlet action="dashlet.invoice.sale.situation"   height="350" canSearch="true" />
		<dashlet action="dashlet.invoice.sale.amount.by.month"   height="350" canSearch="true" />
		<dashlet action="dashlet.invoice.sale.amount.by.currency"   height="350" canSearch="true" />
		<dashlet action="dashlet.invoice.sale.paymentCondition.distribution"   height="350" canSearch="true"/>
	</dashboard>    

	
	<dashboard title="Invoice Dashboard" name="account.purchase.invoice.dashboard.1" width="large">
	   	<dashlet action="dashlet.supplier.invoices.unpaid"   height="350" canSearch="true" colSpan="12"/>
		<dashlet action="dashlet.supplier.invoices.due"   height="350" canSearch="true" colSpan="12"/>
		<dashlet action="dashlet.prod.qty.suppl.invoices.last.12m"   height="350" canSearch="true" />
		<dashlet action="dashlet.prod.turnover.suppl.invoices.last.12m"   height="350" canSearch="true" />
		<dashlet action="dashlet.supplier.invoices.per.month"   height="350" canSearch="true" />
		<dashlet action="dashlet.invoice.purchase.situation"   height="350" canSearch="true" />
		<dashlet action="dashlet.invoice.purchase.amount.by.month"   height="350" canSearch="true" />
		<dashlet action="dashlet.invoice.purchase.amount.by.currency"   height="350" canSearch="true" />
		<dashlet action="dashlet.invoice.purchase.paymentCondition.distribution"   height="350" canSearch="true" />
	</dashboard>  
	
	<dashboard title="Invoice Dashboard" name="account.mix.invoice.dashboard"  >
		 <dashlet action="dashlet.account.invoice.summary"   height="350"/>
	</dashboard>    
	
	<dashboard title="Accounting Dashboard" name="accounting.dashboard.sample" width="large">
		 <dashlet action="dashlet.paymentVoucher.customer.paymentMode.distribution.nbr"   height="350" canSearch="true"/>
		 <dashlet action="dashlet.paymentVoucher.customer.paymentMode.distribution.amount"   height="350" canSearch="true"/>
		 <dashlet action="dashlet.paymentVoucher.customer.paymentMode.by.amount"   height="350" canSearch="true"/>
		 <dashlet action="dashlet.moveLines.revenues.vs.expenses"   height="350"  />
	</dashboard>    

	<action-view name="dashlet.account.invoice.summary" title="Account Invoice Summary" model="com.axelor.apps.account.db.Invoice">
		<view type="chart" name="chart.account.invoice.summary"/>
	</action-view>	

	<action-view name="dashlet.invoiced.turnover.ytd.vs.lastyear" title="Invoiced Turnover This year vs Last year" model="com.axelor.apps.account.db.Invoice">
	    <view type="chart" name="chart.invoiced.turnover.ytd.vs.lastyear"/>        
	    <domain>self.company = :active_company</domain>
	    <context name="active_company" expr="eval:__user__.activeCompany" />
	</action-view>	

	<action-view name="dashlet.invoice.turnover.cust.history" title="Customer Turnover history by month (on invoices)" model="com.axelor.apps.account.db.Invoice">
        <view type="chart" name="chart.invoice.turnover.cust.history"/> 

        <context name="todayDate" expr="eval:__config__.app.getTodayDate()" />
    </action-view>    
    
    <action-view name="dashlet.invoice.prod.qty.sold.history" title="Total Product Qty sold history by month by category" model="com.axelor.apps.account.db.Invoice">
        <view type="chart" name="chart.invoice.prod.qty.sold.history"/>  

		<context name="todayDate" expr="eval:__config__.app.getTodayDate()" />
    </action-view>    
    
	<action-view name="dashlet.invoice.total.revenue.by.product" title="Total Revenue Distribution by Product" model="com.axelor.apps.account.db.Invoice" >
	    <view type="chart" name="chart.invoice.total.revenue.by.product"/>

		<context name="todayDate" expr="eval:__config__.app.getTodayDate()" />
	</action-view>   
	
	<action-view name="dashlet.total.revenue.by.geo.region" title="Total Revenue Generated By Geo Region" model="com.axelor.apps.account.db.Invoice">
	    <view type="chart" name="chart.total.revenue.by.geo.region"/>
	</action-view>
	
	<action-view name="dashlet.prod.qty.suppl.invoices.last.12m" title="Number Of Units On Supplier Invoices On Last 12 Month"
		model="com.axelor.apps.account.db.Invoice">
		<view type="chart" name="chart.purchase.buyer.dashboard.prod.qty.suppl.invoices.last.12m"/>
	</action-view>
	
	<action-view name="dashlet.prod.turnover.suppl.invoices.last.12m" title="Turnover On Supplier Invoices On Last 12 Month">
		<view type="chart" name="chart.purchase.buyer.dashboard.prod.turnover.suppl.invoices.last.12m"/>
	</action-view>
	
	<action-view name="dashlet.supplier.invoices.per.month" title="Number Of Supplier Invoices Per Month">
		<view type="chart" name="chart.purchase.buyer.dashboard.supplier.invoices.per.month"/>
	</action-view>	
	
	<action-view name="dashlet.supplier.invoices.unpaid" title="Unpaid Supplier's Invoices" model="com.axelor.apps.account.db.Invoice" >
	    <view type="grid" name="invoice-supplier-grid"/>
	    <view type="form" name="invoice-form"/>
	    <domain>self.operationTypeSelect = 1 AND self.companyInTaxTotalRemaining &gt; 0 </domain>    
	</action-view>    
	
	<action-view name="dashlet.supplier.invoices.due" title="Supplier's Invoices Due" model="com.axelor.apps.account.db.Invoice">
	    <view type="grid" name="invoice-supplier-grid"/>
	    <view type="form" name="invoice-form"/>
	    <domain>self.operationTypeSelect = 1 AND self.companyInTaxTotalRemaining &gt; 0 AND CURRENT_DATE &gt;= self.dueDate</domain>    
	</action-view>
	
	<action-view name="dashlet.customer.invoices.to.collect" title="Customer Invoices remaining To Collect" model="com.axelor.apps.account.db.Invoice">
		<view type="grid" name="invoice-grid"/>
		<view type="form" name="invoice-form"/>        
		<domain>self.operationTypeSelect=3 AND self.companyInTaxTotalRemaining &gt; 0</domain>
	</action-view>
	
	<action-view name="dashlet.paymentVoucher.customer.paymentMode.distribution.nbr" title="Customer Payment mode distribution by transactions" model="com.axelor.apps.account.db.PaymentVoucher">
	    <view type="chart" name="chart.paymentVoucher.customer.paymentMode.distribution.nbr"/>
	    <context name="todayDate" expr="eval:__config__.app.getTodayDate()" />
	</action-view>
	
	<action-view name="dashlet.paymentVoucher.customer.paymentMode.distribution.amount" title="Customer Payment mode distribution by amount" model="com.axelor.apps.account.db.PaymentVoucher">
	    <view type="chart" name="chart.paymentVoucher.customer.paymentMode.distribution.amount"/>
	    <context name="todayDate" expr="eval:__config__.app.getTodayDate()" />
	</action-view>
	
	<action-view name="dashlet.paymentVoucher.customer.paymentMode.by.amount" title="Customer Payment mode by amount" model="com.axelor.apps.account.db.PaymentVoucher">
	    <view type="chart" name="chart.paymentVoucher.customer.paymentMode.by.amount"/>
	    <context name="todayDate" expr="eval:__config__.app.getTodayDate()" />
	</action-view>
	
	<action-view name="dashlet.moveLines.revenues.vs.expenses" title="Revenues vs Expenses" model="com.axelor.apps.account.db.MoveLine">
	  <view type="chart" name="chart.moveLines.revenues.vs.expenses"/>
	  <context name="active_company" expr="eval:__user__.activeCompany"/>
	  <context name="todayDate" expr="eval:__config__.app.getTodayDate()" />
	</action-view>
	
	<action-view title="Invoice Sale by month (tax excl.)" name="dashlet.invoice.sale.amount.by.month">
		    <view type="chart" name="chart.invoice.sale.amount.by.month"/>
			<context name="todayDate" expr="eval:__config__.app.getTodayDate()"/>

	</action-view>
		
	<action-view title="Invoice Sale by currency (tax excl.)" name="dashlet.invoice.sale.amount.by.currency">
			  <view type="chart" name="chart.invoice.sale.amount.by.currency"/>
			<context name="todayDate" expr="eval:__config__.app.getTodayDate()"/>

	</action-view>
		
	<action-view title="Invoice Sale Payment Condition distribution" name="dashlet.invoice.sale.paymentCondition.distribution">
	  		<view type="chart" name="chart.invoice.sale.paymentCondition.distribution"/>
			<context name="todayDate" expr="eval:__config__.app.getTodayDate()"/>

	</action-view>
	
	<action-view title="Invoice Purchase by month (tax excl.)" name="dashlet.invoice.purchase.amount.by.month">
	  		<view type="chart" name="chart.invoice.purchase.amount.by.month"/>
			<context name="todayDate" expr="eval:__config__.app.getTodayDate()"/>

	</action-view>
	
	<action-view title="Invoice Purchase by currency (tax excl.)" name="dashlet.invoice.purchase.amount.by.currency">
	  		<view type="chart" name="chart.invoice.purchase.amount.by.currency"/>
			<context name="todayDate" expr="eval:__config__.app.getTodayDate()"/>

	</action-view>
	
	<action-view title="Invoice Purchase Payment Condition distribution" name="dashlet.invoice.purchase.paymentCondition.distribution">
		  <view type="chart" name="chart.invoice.purchase.paymentCondition.distribution"/>
		  <context name="todayDate" expr="eval:__config__.app.getTodayDate()"/>

	</action-view>
	
	<action-view name="dashlet.invoice.sale.refund.situation" title="Invoice and Refunds Sale situation (tax incl.)" >
	  <view type="chart" name="chart.invoice.sale.refund.situation"/>
	  <context name="todayDate" expr="eval:__config__.app.getTodayDate()"/>

	</action-view>
	
	<action-view name="dashlet.invoice.sale.situation" title="Invoice Sale situation (tax incl.)">
	  <view type="chart" name="chart.invoice.sale.situation"/>
	  <context name="todayDate" expr="eval:__config__.app.getTodayDate()"/>

	</action-view>
	
	<action-view name="dashlet.invoice.purchase.situation" title="Invoice Purchase situation (tax incl.)">
	  <view type="chart" name="chart.invoice.purchase.situation"/>
	  <context name="todayDate" expr="eval:__config__.app.getTodayDate()"/>

	</action-view>	
	
</object-views>

