Update bonprelevement.class.php

This commit is contained in:
Laurent Destailleur 2018-03-10 22:09:32 +01:00 committed by GitHub
parent f609547bc9
commit bb835d3633
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1310,10 +1310,14 @@ class BonPrelevement extends CommonObject
*/
// SEPA Initialisation
$CrLf = "\n";
$date_actu = dol_now();
$dateTime_ECMA = dol_print_date($date_actu, '%Y-%m-%dT%H:%M:%S');
$now = dol_now();
$dateTime_ECMA = dol_print_date($now, '%Y-%m-%dT%H:%M:%S');
if(!empty($executiondate)) $date_actu=$executiondate;
$date_actu = $now;
if (!empty($executiondate)) $date_actu=$executiondate;
$dateTime_YMD = dol_print_date($date_actu, '%Y%m%d');
$dateTime_YMDHMS = dol_print_date($date_actu, '%Y%m%d%H%M%S');
$fileDebiteurSection = '';