Commit f7374c53 by Yvon

ccas : 6229 : on automatic non ccas reconversion, deduce balance ccas from balance

parent e09330cc
......@@ -83,7 +83,9 @@ class ReconversionMonaPrestatairesCommand extends Command
$prestas = $this->em->getRepository(Prestataire::class)->findBy(['reconversionFrequency' => $reconvmode]);
foreach ($prestas as $p) {
$balance = $p->getEmlcAccount()->getBalance();
//in CCAS_MODE, ccas transactions reconversions are processed separately.
//getBalanceCcas will return 0 if CCAS_MODE is disabled
$balance = $p->getEmlcAccount()->getBalance() - $p->getEmlcAccount()->getBalanceCcas();
if ($balance <= 0) {
continue;
}
......
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