From 18b9f9841c5978eff5a20be89933718b447f51a5 Mon Sep 17 00:00:00 2001 From: Babak Alizadeh Date: Sun, 12 Jan 2025 08:00:16 +0000 Subject: [PATCH] bug fix in accounting load rows --- hesabixCore/src/Controller/HesabdariController.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/hesabixCore/src/Controller/HesabdariController.php b/hesabixCore/src/Controller/HesabdariController.php index 29097f4..37e009b 100644 --- a/hesabixCore/src/Controller/HesabdariController.php +++ b/hesabixCore/src/Controller/HesabdariController.php @@ -689,10 +689,18 @@ class HesabdariController extends AbstractController $roll = ''; if ($params['type'] == 'person') $roll = 'person'; + if ($params['type'] == 'person_receive' || $params['type'] == 'person_send') + $roll = 'person'; + elseif ($params['type'] == 'sell_receive') + $roll = 'sell'; + elseif ($params['type'] == 'buy_send') + $roll = 'buy'; + elseif ($params['type'] == 'transfer') + $roll = 'bankTransfer'; elseif ($params['type'] == 'all') $roll = 'accounting'; else - $this->createNotFoundException(); + $roll = $params['type']; $acc = $access->hasRole($roll); if (!$acc)