ajout des nouvelles dates de cotisations pour l'inscription

This commit is contained in:
Romain Beuque 2014-02-06 11:37:37 +01:00
parent 67cd42b6bf
commit 7f683c64e0

View File

@ -76,9 +76,15 @@ class RegistrationController(AuthenticatedBaseController):
already_paid = 0
for available_month in available_months:
if available_month == 8:
available_months_prices.append(
(available_month, month_names[available_month - 1], CotisationComputes.price_to_pay(year_price, month_price, already_paid, index))
(available_month, "fin de l'année ".decode("utf-8"), CotisationComputes.price_to_pay(year_price, month_price, already_paid, index))
)
else:
available_months_prices.append(
(available_month, str(now.day) + " " + month_names[available_month % 12], CotisationComputes.price_to_pay(year_price, month_price, already_paid, index))
)
#end if
index += 1
#end for