From 572e8603bbde2120c6b0ce72e2098578626eb8b7 Mon Sep 17 00:00:00 2001
From: Benjamin <Benjamin@MBP-de-Benj.(none)>
Date: Mon, 3 Dec 2018 12:36:17 +0100
Subject: [PATCH] fix erreur calcul cca

---
 models/lefilament_tdb.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/models/lefilament_tdb.py b/models/lefilament_tdb.py
index 64a0498..664bdaa 100644
--- a/models/lefilament_tdb.py
+++ b/models/lefilament_tdb.py
@@ -154,7 +154,7 @@ class LeFilamentTdb(models.Model):
             	(select sum(amount) from account_bank_statement_line where amount > 0 and date > %s ) as entree,
             	(select sum(amount) from account_bank_statement_line where amount < 0 and date > %s ) as sortie,
             	(select sum(amount) from account_bank_statement_line where date > %s ) as variation,
-            	(select sum(es.total_amount) from hr_expense_sheet es, hr_expense e where es.id = e.sheet_id and e.payment_mode='own_account' and es.state!='done' ) as cca,
+            	(select sum(e.total_amount) from hr_expense_sheet es, hr_expense e where es.id = e.sheet_id and e.payment_mode='own_account' and es.state!='done' ) as cca,
             	(select sum(price_subtotal-qty_invoiced*price_unit) from sale_order_line where invoice_status='to invoice') as commandes; """
             	% (fiscal_year, fiscal_year_next, fiscal_year_next, fiscal_year_next, fiscal_year_next, fiscal_year_next, fiscal_year, fiscal_year, fiscal_year) )
 		datas = self._cr.dictfetchall()
-- 
GitLab