Commit 4b21ca29 by Yvon Kerdoncuff

fix ccas transactions export currency spellout

parent 05c661fc
......@@ -146,8 +146,8 @@ class SendCcasTransactionsExportToPrestatairesCommand extends Command
if ($previousAnonymousToken !== $row['anonymous_token']) {
$this->fputcsvSeparatedBySemicolon($file, [
'TOTAL ' . $previousAnonymousToken,
$clientTotal,
$nf->format($clientTotal),
number_format($clientTotal, 2),
$this->currencySpellout($nf, $clientTotal),
'',
]);
$clientTotal = 0;
......@@ -156,7 +156,7 @@ class SendCcasTransactionsExportToPrestatairesCommand extends Command
//Write transaction line
$this->fputcsvSeparatedBySemicolon($file, [
$row['anonymous_token'],
$row['montant'],
number_format($row['montant'], 2),
$this->currencySpellout($nf, $row['montant']),
$row['created_at'],
]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment