Commit c9500f7c by Yvon Kerdoncuff

convert str to float before calling number_format ccas in ccastransaction mailer

parent 4b21ca29
...@@ -156,8 +156,8 @@ class SendCcasTransactionsExportToPrestatairesCommand extends Command ...@@ -156,8 +156,8 @@ class SendCcasTransactionsExportToPrestatairesCommand extends Command
//Write transaction line //Write transaction line
$this->fputcsvSeparatedBySemicolon($file, [ $this->fputcsvSeparatedBySemicolon($file, [
$row['anonymous_token'], $row['anonymous_token'],
number_format($row['montant'], 2), number_format(floatval($row['montant']), 2),
$this->currencySpellout($nf, $row['montant']), $this->currencySpellout($nf, floatval($row['montant'])),
$row['created_at'], $row['created_at'],
]); ]);
$clientTotal += $row['montant']; $clientTotal += $row['montant'];
......
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