Skip to content

Commit

Permalink
Tests non régression de nouveau OK
Browse files Browse the repository at this point in the history
  • Loading branch information
bsongis committed Dec 30, 2016
1 parent e3febd0 commit fef7f5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions facture.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def __init__(self, inscrit, annee, mois, options=0):
elif state == VACANCES:
if heures_reference > 0:
self.jours_vacances.append(date)
if not inscription.IsNombreSemainesCongesAtteint(date):
if creche.repartition == REPARTITION_SANS_MENSUALISATION and not inscription.IsNombreSemainesCongesAtteint(date):
self.jours_conges_non_factures.append(date)
self.heures_facturees_par_mode[cotisation.mode_garde] -= heures_reference
self.CalculeDeduction(cotisation, heures_reference)
Expand All @@ -309,7 +309,6 @@ def __init__(self, inscrit, annee, mois, options=0):
affectation_jours_supplementaires = True
self.CalculeSupplement(cotisation, 10)
elif cotisation.inscription.mode not in (MODE_FORFAIT_MENSUEL, MODE_FORFAIT_HEBDOMADAIRE):
print "ICI1", heures_supplementaires_facturees
cotisation.heures_supplementaires += heures_supplementaires_facturees
self.heures_supplementaires += heures_supplementaires_facturees
self.heures_facture_par_mode[cotisation.mode_garde] += heures_supplementaires_facturees
Expand Down
2 changes: 1 addition & 1 deletion sqlobjects.py
Original file line number Diff line number Diff line change
Expand Up @@ -1871,7 +1871,7 @@ def GetNombreJoursCongesPoses(self):
return 0

def IsNombreSemainesCongesAtteint(self, jalon):
if creche.repartition != REPARTITION_SANS_MENSUALISATION or creche.facturation_jours_feries == ABSENCES_DEDUITES_SANS_LIMITE:
if creche.facturation_jours_feries == ABSENCES_DEDUITES_SANS_LIMITE:
return False
if self.debut:
if not self.semaines_conges:
Expand Down

0 comments on commit fef7f5a

Please sign in to comment.