diff --git a/models/lefilament_tdb.py b/models/lefilament_tdb.py index 20e54bba05f1dad5e5cb0f4bc2d06b2ca04bb22e..80136fc3c3cabcf8eaa546d753d235c786379752 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,