diff --git a/app/common/service/ApprovalRecordsService.php b/app/common/service/ApprovalRecordsService.php index 2de3f44..9853b9d 100644 --- a/app/common/service/ApprovalRecordsService.php +++ b/app/common/service/ApprovalRecordsService.php @@ -60,7 +60,7 @@ class ApprovalRecordsService // $config['where']['approver_id'] = $request->user->uid; // } $roles_id = array_intersect([1,5,6], $request->user->role_ids); - if(count($roles_id) === 0){ + if(count($roles_id) == 0){ $config['where']['approver_id'] = $request->user->uid; } $config['where']['status'] = 'pending'; diff --git a/app/crm/service/StockOrdersService.php b/app/crm/service/StockOrdersService.php index d9408d7..cfd964a 100644 --- a/app/crm/service/StockOrdersService.php +++ b/app/crm/service/StockOrdersService.php @@ -36,7 +36,7 @@ class StockOrdersService extends \app\common\service\StockOrdersService $config['order']['id'] = 'desc'; $roles_id = array_intersect([1,5,6], $request->user->role_ids); - if(count($roles_id) === 0){ + if(count($roles_id) == 0){ $config['where']['salesperson_id'] = $request->user->uid; } break;