Skip to content

Commit

Permalink
[O-Pagaïo] Problème reporting heures facturées
Browse files Browse the repository at this point in the history
  • Loading branch information
bsongis committed Jan 15, 2017
1 parent 4960ed6 commit 933ffb5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion facture.py
Expand Up @@ -435,6 +435,8 @@ def __init__(self, inscrit, annee, mois, options=0):
montant = (cotisation.heures_contractualisees - cotisation.heures_realisees_non_facturees) * cotisation.montant_heure_garde
self.cotisation_mensuelle += montant
self.total_contractualise += montant
elif creche.facturation_periode_adaptation == PERIODE_ADAPTATION_GRATUITE and inscription.IsInPeriodeAdaptation:
pass
elif creche.facturation_periode_adaptation == PERIODE_ADAPTATION_HORAIRES_REELS and inscription.IsInPeriodeAdaptation(cotisation.debut):
if inscription.mode in (MODE_FORFAIT_MENSUEL, MODE_FORFAIT_HEBDOMADAIRE):
self.heures_facturees_par_mode[cotisation.mode_garde] += cotisation.heures_realisees - cotisation.heures_realisees_non_facturees
Expand Down Expand Up @@ -521,7 +523,7 @@ def __init__(self, inscrit, annee, mois, options=0):
self.total_contractualise += prorata
self.heures_contrat += prorata_heures
self.heures_facture_par_mode[cotisation.mode_garde] += prorata_heures

if creche.regularisation_fin_contrat:
depart_anticipe = creche.gestion_depart_anticipe and inscription.depart and self.debut_recap <= inscription.depart <= self.fin_recap
dernier_mois = (depart_anticipe or inscription.fin and self.debut_recap <= inscription.fin <= self.fin_recap)
Expand Down

0 comments on commit 933ffb5

Please sign in to comment.