[TELE-1413]add autorisation_voyage_enfants_concernes
This commit is contained in:
parent
548de06767
commit
68223ac98a
|
@ -76,6 +76,7 @@ def diff_dates(oldest_date, newest_date):
|
||||||
def get_birthday_from_nn(numero_national):
|
def get_birthday_from_nn(numero_national):
|
||||||
"""
|
"""
|
||||||
numero_national : (str) numero national peut contenir espace . et -
|
numero_national : (str) numero national peut contenir espace . et -
|
||||||
|
return : (datetime) la date de naissance
|
||||||
"""
|
"""
|
||||||
numero_national = clean_string(numero_national)
|
numero_national = clean_string(numero_national)
|
||||||
date = numero_national[:6]
|
date = numero_national[:6]
|
||||||
|
@ -150,3 +151,20 @@ def calcul_total_abonnement_stationnement(fields_bloc):
|
||||||
total += Decimal(value.get('price'))
|
total += Decimal(value.get('price'))
|
||||||
|
|
||||||
return total
|
return total
|
||||||
|
|
||||||
|
|
||||||
|
@register.filter
|
||||||
|
def autorisation_voyage_enfants_concernes(lst_enfants_concernes):
|
||||||
|
"""
|
||||||
|
Anciennement autorisation_voyage_enfants_concernes.py
|
||||||
|
lst_enfants_concernes : (list)
|
||||||
|
return : (str)
|
||||||
|
"""
|
||||||
|
enfants_concernes = ""
|
||||||
|
if lst_enfants_concernes is not None:
|
||||||
|
for e in lst_enfants_concernes:
|
||||||
|
enfants_concernes = (
|
||||||
|
enfants_concernes + "- " + e[0] + " né(e) à " + e[1] + " le " + e[2] + "\r\n"
|
||||||
|
)
|
||||||
|
|
||||||
|
return enfants_concernes
|
||||||
|
|
Loading…
Reference in New Issue