correction d'une erreur sur le nombre de mois cotisés entre janv et aout

This commit is contained in:
Romain Beuque 2014-01-07 00:22:00 +00:00
parent c265300548
commit 5c7287c8ee

View File

@ -51,10 +51,10 @@ class CotisationComputes:
if start > 8 and end > 8:
next_months_available = range(start, end + 1)
elif start <= 8 and end < 9:
next_months_available = range(start, end + 1)
elif start > 8:
next_months_available = range(start, 13) + range(1, end + 1 )
elif start <= 8 and end < 9:
next_months_available = range(start, 9)
else:
raise Exception("invalid start and end")
#end if