Fixed Showing Orders of users of same company

This commit is contained in:
Frank Schubert
2022-04-27 16:40:47 +02:00
parent 864aa03acc
commit d7192b0378
11 changed files with 422 additions and 52 deletions

View File

@@ -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";
}
}