Commit 807a021d by Yvon Kerdoncuff

#7126 ccas transactions export : fix messed up intermediate total lines

parent 35ebb0c6
......@@ -145,12 +145,13 @@ class SendCcasTransactionsExportToPrestatairesCommand extends Command
//Write intermediate total line before moving to next client
if ($previousAnonymousToken !== $row['anonymous_token']) {
$this->fputcsvSeparatedBySemicolon($file, [
'TOTAL ' . $row['anonymous_token'],
'TOTAL ' . $previousAnonymousToken,
$clientTotal,
$nf->format($clientTotal),
'',
]);
$clientTotal = 0;
$previousAnonymousToken = $row['anonymous_token'];
}
//Write transaction line
$this->fputcsvSeparatedBySemicolon($file, [
......
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