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

[update] date refund

parent b0166cca
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -492,9 +492,11 @@ class ScopCotisationExo(models.Model):
)
if exo_amount != 0:
date_refund = (
self.date_exo_ok
)
if self.date_exo_ok > bordereau_id.date_cotisation:
date_refund = self.date_exo_ok
else:
date_refund = bordereau_id.date_cotisation
quarter_date_due = bordereau_id.invoice_ids.filtered(
lambda i: i.cotiz_quarter == str(quarter)
and i.move_type == "out_invoice"
......
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