Skip to content
Extraits de code Groupes Projets
Valider 6383c6de rédigé par jordan's avatar jordan
Parcourir les fichiers

[update] add echeancier on bordereau

parent 4eb532b9
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!212.0 dev
......@@ -351,9 +351,13 @@ class Bordereau(models.Model):
+ '</td><td style="width: 100%;">'
+ str(
contrib.get('amount_total_signed')) + ' €</td>')
amount_echeance = self.amount_total_cotiz / self.nb_quarter
detail += "</table><table class='o_group o_inner_group'>"
for i in range(1, 5):
amount_echeance = sum(self.invoice_ids.filtered(
lambda inv: inv.cotiz_quarter == i
).mapped('amount_total_signed'))
detail += '<tr><td class="o_td_label font-weight-bold">' \
+ 'Montant échéance' \
+ 'Trimestre ' + str(i) \
+ '</td><td style="width: 100%;">' \
+ str(amount_echeance) + ' €</td>'
detail += '</table>'
......
......@@ -98,9 +98,7 @@
<field name="type_assiette" attrs="{'invisible': [('liasse_fiscale_id', '=', False)]}"/>
<field name="montant_assiette" attrs="{'invisible': [('liasse_fiscale_id', '=', False)]}"/>
<field name="amount_total_cotiz"/>
<div>
<field name="details"/>
</div>
<field name="details" nolabel="1"/>
</group>
</group>
......
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