bug fix in accounting load rows

This commit is contained in:
Hesabix 2025-01-12 08:00:16 +00:00
parent 34026cfcfb
commit 18b9f9841c

View file

@ -689,10 +689,18 @@ class HesabdariController extends AbstractController
$roll = ''; $roll = '';
if ($params['type'] == 'person') if ($params['type'] == 'person')
$roll = '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') elseif ($params['type'] == 'all')
$roll = 'accounting'; $roll = 'accounting';
else else
$this->createNotFoundException(); $roll = $params['type'];
$acc = $access->hasRole($roll); $acc = $access->hasRole($roll);
if (!$acc) if (!$acc)