Skip to content

Commit

Permalink
Ajout d'une trace pour les régularisations
Browse files Browse the repository at this point in the history
  • Loading branch information
bsongis committed Jun 7, 2017
1 parent e436d1e commit 4c440b6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions facture.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,9 +568,10 @@ def __init__(self, inscrit, annee, mois, options=0):
while date <= inscription.depart:
cotisation_regularisee = Cotisation(inscrit, date, options=NO_ADDRESS | DEPART_ANTICIPE | self.options)
regularisation_cotisation = cotisation_regularisee.cotisation_mensuelle - cotisation.cotisation_mensuelle
regularisation_periode = regularisation_cotisation * cotisation_regularisee.nombre_factures
if options & TRACES:
print " régularisation cotisation : %f - %f = %f par mois" % (cotisation_regularisee.cotisation_mensuelle, cotisation.cotisation_mensuelle, regularisation_cotisation)
self.regularisation += regularisation_cotisation * cotisation_regularisee.nombre_factures
print " régularisation cotisation : %f - %f = %f par mois => %f" % (cotisation_regularisee.cotisation_mensuelle, cotisation.cotisation_mensuelle, regularisation_cotisation, regularisation_periode)
self.regularisation += regularisation_periode
self.raison_regularisation.add("régularisation cotisation")
date = cotisation.fin + datetime.timedelta(1)
else:
Expand Down

0 comments on commit 4c440b6

Please sign in to comment.