Fixed Showing Orders of users of same company
This commit is contained in:
@@ -265,7 +265,9 @@ class OrderModel {
|
||||
|
||||
if(array_key_exists("create_by", $filter)) {
|
||||
$create_by = $filter['create_by'];
|
||||
if(is_numeric($create_by)) {
|
||||
if(is_array($create_by)) {
|
||||
$where .= " AND `Order`.create_by IN (".implode(",",$create_by).")";
|
||||
} elseif(is_numeric($create_by)) {
|
||||
$where .= " AND `Order`.create_by=$create_by";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user