Skip to content
Extraits de code Groupes Projets
Valider 3cf14a2d rédigé par Rémi - Le Filament's avatar Rémi - Le Filament
Parcourir les fichiers

Fix CCA with new table

parent 61f2e276
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -130,7 +130,7 @@ class LeFilamentTdb(models.Model): ...@@ -130,7 +130,7 @@ class LeFilamentTdb(models.Model):
(select sum(amount) from account_bank_statement_line where amount > 0 and date >= date_trunc('year', current_date) ) as entree, (select sum(amount) from account_bank_statement_line where amount > 0 and date >= date_trunc('year', current_date) ) as entree,
(select sum(amount) from account_bank_statement_line where amount < 0 and date >= date_trunc('year', current_date) ) as sortie, (select sum(amount) from account_bank_statement_line where amount < 0 and date >= date_trunc('year', current_date) ) as sortie,
(select sum(amount) from account_bank_statement_line where date >= date_trunc('year', current_date) ) as variation, (select sum(amount) from account_bank_statement_line where date >= date_trunc('year', current_date) ) as variation,
(select sum(total_amount) from hr_expense where payment_mode='own_account' and state!='done' ) as cca, (select sum(total_amount) from hr_expense_sheet where payment_mode='own_account' and state!='done' ) as cca,
(select sum(price_subtotal-qty_invoiced*price_unit) from sale_order_line where invoice_status='to invoice') as commandes; """) (select sum(price_subtotal-qty_invoiced*price_unit) from sale_order_line where invoice_status='to invoice') as commandes; """)
datas = self._cr.dictfetchall() datas = self._cr.dictfetchall()
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter