From ab7b21b76feecf63342e4e1a8d5c14e4c5cb4a93 Mon Sep 17 00:00:00 2001 From: Djery-Tom Date: Mon, 21 Feb 2022 22:42:50 +0100 Subject: [PATCH] Fix calcul commission bug --- app/Http/Controllers/iLinkTransactionController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/iLinkTransactionController.php b/app/Http/Controllers/iLinkTransactionController.php index a097208..71a044e 100755 --- a/app/Http/Controllers/iLinkTransactionController.php +++ b/app/Http/Controllers/iLinkTransactionController.php @@ -1665,11 +1665,11 @@ class iLinkTransactionController extends Controller } $taxesNationales = array_values(array_filter($config->taxes->all(), function ($tax) { - return $tax->destination == 'national'; + return $tax->destination == 'national' && $tax->categorie == 'wallet'; })); $taxesInternationales = array_values(array_filter($config->taxes->all(), function ($tax) { - return $tax->destination == 'international'; + return $tax->destination == 'international' && $tax->categorie == 'wallet'; }));