convert comma to dots in amount column (#45917)

This commit is contained in:
Frédéric Péters 2020-08-17 16:06:08 +02:00
parent 60b656692e
commit 59a6d5becf
1 changed files with 3 additions and 3 deletions

View File

@ -635,9 +635,9 @@ query getDossiers($demarcheNumber: Int!, $createdSince: ISO8601DateTime, $first:
code_pays = 'FR'
devise = 'EUR'
def get_data(fields, field_name):
def get_data(fields, field_name, comma=' '):
res = fields[field_name] or ''
return res.replace(',', ' ')
return res.replace(',', comma)
def write_row(writer, row):
writer.writerow([force_text(i) for i in row])
@ -694,7 +694,7 @@ query getDossiers($demarcheNumber: Int!, $createdSince: ISO8601DateTime, $first:
cp = get_data(form_fields, 'code_postal')
ville = get_data(form_fields, 'ville')
iban = get_data(form_fields, 'iban')
montant = get_data(workflow_fields, 'montant_aide_volet_2')
montant = get_data(workflow_fields, 'montant_aide_volet_2', comma='.')
nom_demandeur = form_fields['nom_demandeur']
prenom_demandeur = form_fields['prenom_demandeur']
qualite = ''