Remplacement de la valeur 50 en dur par year_price pour tenir compte des différences possibles entre les résidences (actuellement BDI à 40€).

This commit is contained in:
Yohan Bataille 2013-10-01 16:08:35 +02:00
parent c0730732a3
commit 095e21bb47

View File

@ -89,8 +89,8 @@ class CotisationComputes:
months_price = number_months_to_pay * month_price months_price = number_months_to_pay * month_price
print "already paid : " + str(already_paid) print "already paid : " + str(already_paid)
print "months price : " + str(months_price) print "months price : " + str(months_price)
if already_paid + months_price > 50: if already_paid + months_price > year_price:
months_price = max(0, 50 - already_paid) months_price = max(0, year_price - already_paid)
return months_price return months_price
#end def #end def