add html_entity_decode on fields for export process (for example &acute -> é)

This commit is contained in:
Eric 2019-01-20 15:25:24 +01:00
parent 13586ff3d8
commit df5aa33022

View File

@ -8,7 +8,8 @@
* Copyright (C) 2013-2014 Florian Henry <florian.henry@open-concept.pro>
* Copyright (C) 2013-2014 Olivier Geffroy <jeff@jeffinfo.com>
* Copyright (C) 2017-2018 Frédéric France <frederic.france@netlogic.fr>
* Copyright (C) 2018 Ferran Marcet <fmarcet@2byte.es>
* Copyright (C) 2018 Ferran Marcet <fmarcet@2byte.es>
* Copyright (C) 2018 Eric Seigne <eric.seigne@cap-rel.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -785,17 +786,17 @@ if ($action == 'exportcsv') { // ISO and not UTF8 !
include DOL_DOCUMENT_ROOT . '/accountancy/tpl/export_journal.tpl.php';
// CSV header line
print '"' . $langs->trans("BankId").'"' . $sep;
print '"' . $langs->trans("Date") . '"' . $sep;
print '"' . $langs->trans("PaymentMode") . '"' . $sep;
print '"' . $langs->trans("AccountAccounting") . '"' . $sep;
print '"' . $langs->trans("LedgerAccount") . '"' . $sep;
print '"' . $langs->trans("SubledgerAccount") . '"' . $sep;
print '"' . $langs->trans("Label"). '"' . $sep;
print '"' . $langs->trans("Debit") . '"' . $sep;
print '"' . $langs->trans("Credit") . '"' . $sep;
print '"' . $langs->trans("Journal") . '"' . $sep;
print '"' . $langs->trans("Note") . '"' . $sep;
print '"' . html_entity_decode($langs->trans("BankId")).'"' . $sep;
print '"' . html_entity_decode($langs->trans("Date")) . '"' . $sep;
print '"' . html_entity_decode($langs->trans("PaymentMode")) . '"' . $sep;
print '"' . html_entity_decode($langs->trans("AccountAccounting")) . '"' . $sep;
print '"' . html_entity_decode($langs->trans("LedgerAccount")) . '"' . $sep;
print '"' . html_entity_decode($langs->trans("SubledgerAccount")) . '"' . $sep;
print '"' . html_entity_decode($langs->trans("Label")). '"' . $sep;
print '"' . html_entity_decode($langs->trans("Debit")) . '"' . $sep;
print '"' . html_entity_decode($langs->trans("Credit")) . '"' . $sep;
print '"' . html_entity_decode($langs->trans("Journal")) . '"' . $sep;
print '"' . html_entity_decode($langs->trans("Note")) . '"' . $sep;
print "\n";