Commit 736d2873 by Julien Jorry

Fix Don for emlc cotisation

parent c642b13a
......@@ -59,7 +59,7 @@ class AchatMonnaie extends Flux
OperationFactory::getOperation($this, $this->getDestinataire(), CurrencyEnum::CURRENCY_EMLC, $this->getMontant()),
];
if (null != $this->getDon()) {
return array_merge($this->getDon()->getAllOperations($em), $achatOperations);
return array_merge($achatOperations, $this->getDon()->getAllOperations($em));
}
return $achatOperations;
......
......@@ -63,7 +63,7 @@ class Cotisation extends Flux
];
}
if (null != $this->getDon()) {
return array_merge($this->getDon()->getAllOperations($em), $cotisationOperations);
return array_merge($cotisationOperations, $this->getDon()->getAllOperations($em));
}
return $cotisationOperations;
......
......@@ -41,7 +41,7 @@ class Don extends Flux
public function getAllOperations($em)
{
if (MoyenEnum::MOYEN_MLC == $this->getMoyen()) {
if (MoyenEnum::MOYEN_EMLC == $this->getMoyen()) {
return [
OperationFactory::getOperation($this, $this->getExpediteur(), CurrencyEnum::CURRENCY_EMLC, -$this->getMontant()),
OperationFactory::getOperation($this, $this->getDestinataire(), CurrencyEnum::CURRENCY_EMLC, $this->getMontant()),
......
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