Added upgrade checkbox to Order

This commit is contained in:
Frank Schubert
2022-01-27 20:42:12 +01:00
parent bd43ba0ca0
commit 96e049826b
7 changed files with 24 additions and 1 deletions

View File

@@ -3,6 +3,7 @@
class OrderModel {
public $owner_id;
public $billingaddress_id;
public $upgrade;
public $partner_number;
public $order_date;
public $finish_date;
@@ -270,6 +271,14 @@ class OrderModel {
}
}
if(array_key_exists("upgrade", $filter)) {
if($filter['upgrade'] == 1) {
$where .= " AND `Order`.upgrade = 1";
} else {
$where .= " AND `Order`.upgrade = 0";
}
}
if(array_key_exists("name", $filter)) {
$name = FronkDB::singleton()->escape($filter['name']);
if($name) {