Merge pull request #17729 from atm-maxime/fix_compta_export_dateech2

Fix Winfic accountancy export for due date
This commit is contained in:
Laurent Destailleur 2021-05-26 17:25:37 +02:00 committed by GitHub
commit 5c3923240d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -617,9 +617,8 @@ class AccountancyExport
$Tab['code_stat'] = str_repeat(' ', 4);
if (!empty($data->date_echeance))
//$Tab['date_echeance'] = dol_print_date($data->date_echeance, $conf->global->ACCOUNTING_EXPORT_DATE);
$Tab['date_echeance'] = dol_print_date($data->date_echeance, '%d%m%Y');
if (!empty($data->date_lim_reglement))
$Tab['date_echeance'] = dol_print_date($data->date_lim_reglement, '%d%m%Y');
else
$Tab['date_echeance'] = dol_print_date($data->doc_date, '%d%m%Y');