|
@@ -32,6 +32,7 @@
|
|
|
*/
|
|
|
|
|
|
require_once DOL_DOCUMENT_ROOT . '/core/lib/functions.lib.php';
|
|
|
+require_once DOL_DOCUMENT_ROOT . '/core/lib/functions2.lib.php';
|
|
|
|
|
|
/**
|
|
|
* Manage the different format accountancy export
|
|
@@ -687,9 +688,9 @@ class AccountancyExport
|
|
|
print $end_line;
|
|
|
|
|
|
foreach ($objectLines as $line) {
|
|
|
- $date_creation = dol_print_date($line->date_creation, '%d%m%Y');
|
|
|
- $date_doc = dol_print_date($line->doc_date, '%d%m%Y');
|
|
|
- $date_valid = dol_print_date($line->date_validated, '%d%m%Y');
|
|
|
+ $date_creation = dol_print_date($line->date_creation, '%Y%m%d');
|
|
|
+ $date_doc = dol_print_date($line->doc_date, '%Y%m%d');
|
|
|
+ $date_valid = dol_print_date($line->date_validated, '%Y%m%d');
|
|
|
|
|
|
// FEC:JournalCode
|
|
|
print $line->code_journal . $separator;
|
|
@@ -725,10 +726,10 @@ class AccountancyExport
|
|
|
print $line->label_operation . $separator;
|
|
|
|
|
|
// FEC:Debit
|
|
|
- print price2num($line->debit) . $separator;
|
|
|
+ print price2fec($line->debit) . $separator;
|
|
|
|
|
|
// FEC:Credit
|
|
|
- print price2num($line->credit) . $separator;
|
|
|
+ print price2fec($line->credit) . $separator;
|
|
|
|
|
|
// FEC:EcritureLet
|
|
|
print $line->lettering_code . $separator;
|