Added new Preorder stati
This commit is contained in:
@@ -220,7 +220,7 @@ class PreorderApicontroller extends mfBaseApicontroller {
|
||||
$preorder->cancel_approved = $this->me->id;
|
||||
$preorder->deleted = date('U');
|
||||
$preorder->deleted_by = $this->me->id;
|
||||
$preorder->status_id = 15; // 899 - Cancelled
|
||||
$preorder->status_id = 23; //910 - Cancelled (ohne weitere Begründung)
|
||||
if(!$preorder->save()) {
|
||||
return mfResponse::InternalServerError();
|
||||
}
|
||||
@@ -639,7 +639,8 @@ class PreorderApicontroller extends mfBaseApicontroller {
|
||||
}
|
||||
$preorder_data['extref'] = (trim($this->post['extref'])) ? trim($this->post['extref']) : null;
|
||||
$preorder_data['technology'] = (trim($this->post['technology'])) ? trim($this->post['technology']) : null;
|
||||
$preorder_data['patchposition'] = (trim($this->post['patchposition'])) ? trim($this->post['patchposition']) : null;
|
||||
$preorder_data['equipment_name'] = (trim($this->post['equipment_name'])) ? trim($this->post['equipment_name']) : null;
|
||||
$preorder_data['equipment_port'] = (trim($this->post['equipment_port'])) ? trim($this->post['equipment_port']) : null;
|
||||
|
||||
/*
|
||||
* setup price
|
||||
|
||||
@@ -236,7 +236,8 @@ class Preorder extends mfBaseModel {
|
||||
$a['connectionCount'] = ($this->connection_count) ? (int)$this->connection_count : 1;
|
||||
$a['isAdditionalOrder'] = ($this->is_additional_order) ? true : false;
|
||||
$a['technology'] = ($this->technology) ? $this->technology : null;
|
||||
$a['patchposition'] = ($this->patchposition) ? $this->patchposition : null;
|
||||
$a['equipment_name'] = ($this->equipment_name) ? $this->equipment_name: null;
|
||||
$a['equipment_port'] = ($this->equipment_port) ? $this->equipment_port: null;
|
||||
$a['preorderType'] = $this->type;
|
||||
$a['acceptMarketing'] = ($this->accept_marketing) ? true : false;
|
||||
$a['acceptAgb'] = ($this->accept_agb) ? true : false;
|
||||
|
||||
@@ -47,7 +47,8 @@ class PreorderModel {
|
||||
public $phone;
|
||||
public $email;
|
||||
public $technology;
|
||||
public $patchposition;
|
||||
public $equipment_name;
|
||||
public $equipment_port;
|
||||
public $is_additional_order;
|
||||
public $shipping_address;
|
||||
public $addon_services;
|
||||
|
||||
Reference in New Issue
Block a user