Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kohinos-tav
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
agplv3
kohinos-tav
Commits
807a021d
Commit
807a021d
authored
Nov 19, 2024
by
Yvon Kerdoncuff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#7126 ccas transactions export : fix messed up intermediate total lines
parent
35ebb0c6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
SendCcasTransactionsExportToPrestatairesCommand.php
...mmand/SendCcasTransactionsExportToPrestatairesCommand.php
+2
-1
No files found.
src/Command/SendCcasTransactionsExportToPrestatairesCommand.php
View file @
807a021d
...
@@ -145,12 +145,13 @@ class SendCcasTransactionsExportToPrestatairesCommand extends Command
...
@@ -145,12 +145,13 @@ class SendCcasTransactionsExportToPrestatairesCommand extends Command
//Write intermediate total line before moving to next client
//Write intermediate total line before moving to next client
if
(
$previousAnonymousToken
!==
$row
[
'anonymous_token'
])
{
if
(
$previousAnonymousToken
!==
$row
[
'anonymous_token'
])
{
$this
->
fputcsvSeparatedBySemicolon
(
$file
,
[
$this
->
fputcsvSeparatedBySemicolon
(
$file
,
[
'TOTAL '
.
$
row
[
'anonymous_token'
]
,
'TOTAL '
.
$
previousAnonymousToken
,
$clientTotal
,
$clientTotal
,
$nf
->
format
(
$clientTotal
),
$nf
->
format
(
$clientTotal
),
''
,
''
,
]);
]);
$clientTotal
=
0
;
$clientTotal
=
0
;
$previousAnonymousToken
=
$row
[
'anonymous_token'
];
}
}
//Write transaction line
//Write transaction line
$this
->
fputcsvSeparatedBySemicolon
(
$file
,
[
$this
->
fputcsvSeparatedBySemicolon
(
$file
,
[
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment