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
4ac3ab4e
Commit
4ac3ab4e
authored
May 13, 2024
by
Yvon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add comment in executeOperations
parent
52b57d19
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
OperationUtils.php
src/Utils/OperationUtils.php
+9
-0
No files found.
src/Utils/OperationUtils.php
View file @
4ac3ab4e
...
...
@@ -135,7 +135,16 @@ class OperationUtils
LockMode
::
PESSIMISTIC_WRITE
);
// $account->addOperation($operation);
/*
* Apply operations on account amounts.
* One flux between two acounts is composed of two operations.
* These operations are configured by getAllOperations methods.
* These operations can be positive or negative.
* For example, a flux of type Reconversion will decrease
* accounts of prestataire and siege (see Reconversion.php).
*/
$account
->
addAmount
(
$operation
->
getMontant
());
//Update special account "balance ccas" for some operations only
$updateBalanceCcas
=
//only process isCcas or reconversionCcas $flux
(
$flux
instanceof
Transaction
&&
$flux
->
getIsCcas
()
||
$flux
instanceof
Reconversion
&&
$flux
->
getReconversionCcas
()
)
...
...
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