Skip to content
Extraits de code Groupes Projets
Valider 789b4932 rédigé par Benjamin - Le Filament's avatar Benjamin - Le Filament
Parcourir les fichiers

[update] round amount_echeance

parent dc594ee2
Branches
Aucune étiquette associée trouvée
1 requête de fusion!212.0 dev
......@@ -340,9 +340,9 @@ class Bordereau(models.Model):
' €</td></tr>')
detail += "</table><table class='o_group o_inner_group'>"
for i in range(1, 5):
amount_echeance = sum(self.invoice_ids.filtered(
amount_echeance = round(sum(self.invoice_ids.filtered(
lambda inv: inv.cotiz_quarter == i
).mapped('amount_total_signed'))
).mapped('amount_total_signed')), 2)
detail += '<tr><td class="o_td_label font-weight-bold">' \
+ 'Trimestre ' + str(i) \
+ '</td><td style="width: 100%;">' \
......
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