Commit 4b21ca29 by Yvon Kerdoncuff

fix ccas transactions export currency spellout

parent 05c661fc
...@@ -146,8 +146,8 @@ class SendCcasTransactionsExportToPrestatairesCommand extends Command ...@@ -146,8 +146,8 @@ class SendCcasTransactionsExportToPrestatairesCommand extends Command
if ($previousAnonymousToken !== $row['anonymous_token']) { if ($previousAnonymousToken !== $row['anonymous_token']) {
$this->fputcsvSeparatedBySemicolon($file, [ $this->fputcsvSeparatedBySemicolon($file, [
'TOTAL ' . $previousAnonymousToken, 'TOTAL ' . $previousAnonymousToken,
$clientTotal, number_format($clientTotal, 2),
$nf->format($clientTotal), $this->currencySpellout($nf, $clientTotal),
'', '',
]); ]);
$clientTotal = 0; $clientTotal = 0;
...@@ -156,7 +156,7 @@ class SendCcasTransactionsExportToPrestatairesCommand extends Command ...@@ -156,7 +156,7 @@ class SendCcasTransactionsExportToPrestatairesCommand extends Command
//Write transaction line //Write transaction line
$this->fputcsvSeparatedBySemicolon($file, [ $this->fputcsvSeparatedBySemicolon($file, [
$row['anonymous_token'], $row['anonymous_token'],
$row['montant'], number_format($row['montant'], 2),
$this->currencySpellout($nf, $row['montant']), $this->currencySpellout($nf, $row['montant']),
$row['created_at'], $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