diff --git a/app/Controllers/RecouvrementController.php b/app/Controllers/RecouvrementController.php index a3711476..3aee6aa3 100644 --- a/app/Controllers/RecouvrementController.php +++ b/app/Controllers/RecouvrementController.php @@ -83,20 +83,19 @@ class RecouvrementController extends AdminController $total = $total_orders + $total_avances; // Ajustements avec recouvrements et sorties caisse - $total_mvola_final = $total_mvola - $me - $mb + $bm; - $total_espece_final = $es1_orders + $es2_orders + $es_avances - $total_sortie_caisse; + $total_mvola_final = $total_mvola - $me - $mb + $bm; + $total_espece_final = $total_espece + $me + $be - $total_sortie_caisse; $total_virement_bancaire_final = $total_vb - $be - $bm + $mb; return [ 'total' => $total, 'total_mvola' => $total_mvola_final, 'total_espece' => $total_espece_final, - 'total_virement_bancaire'=> $total_virement_bancaire_final, + 'total_virement_bancaire' => $total_virement_bancaire_final, 'page_title' => $this->pageTitle, 'permission' => $this->permission ]; } - public function fetchRecouvrementData() {