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

[update] add round to closest multiple for refund bordereau

parent 932e16bd
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!212.0 dev
...@@ -189,7 +189,8 @@ class ScopCotisationRegul(models.TransientModel): ...@@ -189,7 +189,8 @@ class ScopCotisationRegul(models.TransientModel):
type_cotiz = contrib.get('type_contribution_id')[0] type_cotiz = contrib.get('type_contribution_id')[0]
amount_cotiz_old = contrib.get('amount_total_signed') amount_cotiz_old = contrib.get('amount_total_signed')
amount_cotiz = cotiz_type.get(type_cotiz)[0] amount_cotiz = cotiz_type.get(type_cotiz)[0]
refund_amount_total = amount_cotiz_old - amount_cotiz refund_amount_total = self.env['scop.cotisation'].\
round_to_closest_multiple(amount_cotiz_old - amount_cotiz, 4)
product = cotiz_type.get(type_cotiz)[1] product = cotiz_type.get(type_cotiz)[1]
type_invoice = False type_invoice = False
......
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