From 406586bed42d87362d24715d43623be9a5c65dd6 Mon Sep 17 00:00:00 2001 From: Benjamin <Benjamin@MBP-de-Benj.(none)> Date: Tue, 30 May 2017 09:38:33 +0200 Subject: [PATCH] =?UTF-8?q?[modif]=20reste=20=C3=A0=20encaisser=20->=20tot?= =?UTF-8?q?al,=20et=20pas=20sur=20l'ann=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 20e54bb..80136fc 100644 --- a/models/lefilament_tdb.py +++ b/models/lefilament_tdb.py @@ -111,7 +111,7 @@ class LeFilamentTdb(models.Model): SELECT (select count(*) from account_invoice) as id, (select sum(amount_untaxed) from account_invoice where state!='draft' and type='out_invoice' and date >= date_trunc('year', current_date) ) as facture, - (select sum(residual_company_signed) from account_invoice where state!='draft' and type='out_invoice' and date >= date_trunc('year', current_date) ) as a_encaisser, + (select sum(residual_company_signed) from account_invoice where state!='draft' and type='out_invoice' ) as a_encaisser, (select sum(planned_revenue*probability/100) from crm_lead where active=True) as pipe, (select sum(amount) from account_bank_statement_line ) as tresorerie, (select sum(amount) from account_bank_statement_line where amount > 0 and date >= date_trunc('year', current_date) ) as entree, -- GitLab