From a789a5423b395673e39e0dc4f774f97042c5e759 Mon Sep 17 00:00:00 2001
From: Benjamin <Benjamin@MBP-de-Benj.(none)>
Date: Mon, 3 Dec 2018 14:29:00 +0100
Subject: [PATCH] fix erreur cca sur treso

---
 models/lefilament_tdb.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/models/lefilament_tdb.py b/models/lefilament_tdb.py
index 664bdaa..9b6c739 100644
--- a/models/lefilament_tdb.py
+++ b/models/lefilament_tdb.py
@@ -212,7 +212,7 @@ class LeFilamentTdb(models.Model):
 		tresorerie = self._cr.dictfetchall()
 
 		self._cr.execute("""SELECT 
-					(select sum(es.total_amount) as fonds_propres 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) as fonds_propres 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(capital) as capital from hr_employee) as capital;""")
 		fonds_propres = self._cr.dictfetchall()[0]
 
@@ -231,7 +231,7 @@ class LeFilamentTdb(models.Model):
 		tresorerie = self._cr.dictfetchall()
 
 		self._cr.execute("""SELECT 
-					(select sum(es.total_amount) as fonds_propres 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) as fonds_propres 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(capital) as capital from hr_employee) as capital;""")
 		fonds_propres = self._cr.dictfetchall()[0]
 
-- 
GitLab