Commit 4ac3ab4e by Yvon

add comment in executeOperations

parent 52b57d19
......@@ -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() )
......
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