Added orderDate to POST /preorder; setting status when creating preorder
This commit is contained in:
@@ -2,10 +2,14 @@
|
||||
|
||||
class PreorderModel {
|
||||
public $ucode;
|
||||
public $ciftoken;
|
||||
public $cifurl;
|
||||
public $status_id;
|
||||
public $preordercampaign_id;
|
||||
public $adb_hausnummer_id;
|
||||
public $adb_wohneinheit_id;
|
||||
public $address_created;
|
||||
public $address_created_by;
|
||||
public $oaid;
|
||||
public $extref;
|
||||
public $address_district;
|
||||
@@ -56,6 +60,10 @@ class PreorderModel {
|
||||
public $attributes;
|
||||
public $submit_type;
|
||||
public $submit_request;
|
||||
public $installation_date;
|
||||
public $workorder_export_date;
|
||||
public $workorder_export_data;
|
||||
public $order_date;
|
||||
|
||||
public $cancel_request;
|
||||
public $cancel_request_by;
|
||||
@@ -420,11 +428,11 @@ class PreorderModel {
|
||||
if(array_key_exists("type", $filter)) {
|
||||
$type = $filter['type'];
|
||||
if(is_array($type) && count($type)) {
|
||||
$where .= " AND type IN ('".implode("','",$type)."')";
|
||||
$where .= " AND tt_preorder.type IN ('".implode("','",$type)."')";
|
||||
} else {
|
||||
$type = FronkDB::singleton()->escape($filter['type']);
|
||||
if($type) {
|
||||
$where .= " AND type like '%$type%'";
|
||||
$where .= " AND tt_preorder.type like '%$type%'";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -432,11 +440,11 @@ class PreorderModel {
|
||||
if(array_key_exists("connection_type", $filter)) {
|
||||
$connection_type = $filter['connection_type'];
|
||||
if(is_array($connection_type) && count($connection_type)) {
|
||||
$where .= " AND connection_type IN ('".implode("','",$connection_type)."')";
|
||||
$where .= " AND tt_preorder.connection_type IN ('".implode("','",$connection_type)."')";
|
||||
} else {
|
||||
$connection_type = FronkDB::singleton()->escape($filter['connection_type']);
|
||||
if($connection_type) {
|
||||
$where .= " AND connection_type like '%$connection_type%'";
|
||||
$where .= " AND tt_preorder.connection_type like '%$connection_type%'";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user