Skip to content

Commit

Permalink
Activités sans horaires en vacances comptées dans les factures
Browse files Browse the repository at this point in the history
  • Loading branch information
bsongis committed Feb 5, 2018
1 parent e9623fd commit 3bff060
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions tests/test_nonreg.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ def setUp(self):
database.creche.repartition = REPARTITION_MENSUALISATION_12MOIS
database.creche.facturation_periode_adaptation = PERIODE_ADAPTATION_HORAIRES_REELS
database.creche.conges_inscription = GESTION_CONGES_INSCRIPTION_MENSUALISES_AVEC_POSSIBILITE_DE_SUPPLEMENT
database.creche.arrondi_mensualisation_euros = ARRONDI_EURO_PLUS_PROCHE
database.creche.tarification_activites = 1
database.creche.tarifs_horaires.append(TarifHoraire(database.creche, [["", 6.25, TARIF_HORAIRE_UNITE_EUROS_PAR_HEURE]]))
database.creche.bureaux.append(Bureau(debut=datetime.date(2010, 1, 1)))
Expand All @@ -346,13 +347,13 @@ def test_123_apetitspas(self):
cotisation = Cotisation(inscrit, datetime.date(2014, 10, 1), NO_ADDRESS)
self.assert_prec2_equals(cotisation.cotisation_mensuelle, 0)
cotisation = Cotisation(inscrit, datetime.date(2014, 10, 7), NO_ADDRESS)
self.assert_prec2_equals(cotisation.cotisation_mensuelle, 1054.69)
self.assert_prec2_equals(cotisation.cotisation_mensuelle, 1055.00)
facture = Facture(inscrit, 2014, 9, NO_ADDRESS)
self.assert_prec2_equals(facture.total, 268.75)
self.assert_prec2_equals(facture.total, 269.00)
facture = Facture(inscrit, 2014, 10, NO_ADDRESS)
self.assert_prec2_equals(facture.total, 1075.55)
self.assert_prec2_equals(facture.total, 1076.00)
facture = Facture(inscrit, 2014, 11, NO_ADDRESS)
self.assert_prec2_equals(facture.total, 1054.69)
self.assert_prec2_equals(facture.total, 1055.00)

def test_activites_pendant_conges(self):
inscrit = self.add_inscrit()
Expand All @@ -376,10 +377,10 @@ def test_activites_pendant_conges(self):
inscrit.inscriptions.append(inscription)
cotisation = Cotisation(inscrit, datetime.date(2018, 1, 1), NO_ADDRESS)
self.assert_prec2_equals(cotisation.montant_heure_garde, 6.25)
self.assert_prec2_equals(cotisation.cotisation_mensuelle, 937.50)
self.assert_prec2_equals(cotisation.cotisation_mensuelle, 938.00)
facture = Facture(inscrit, 2018, 1, NO_ADDRESS)
self.assert_prec2_equals(facture.supplement_activites, 81.00)
self.assert_prec2_equals(facture.total, 1121.63)
self.assert_prec2_equals(facture.total, 1122.13)


class MarmousetsTests(GertrudeTestCase):
Expand Down

0 comments on commit 3bff060

Please sign in to comment.