Added email when ordering upgrade order
This commit is contained in:
@@ -494,6 +494,7 @@ class OrderController extends mfBaseController {
|
||||
$this->layout()->set("upgrades", $upgrades);
|
||||
$this->layout()->set("pagination", $pagination);
|
||||
}
|
||||
|
||||
protected function addUpgrade() {
|
||||
//$this->layout()->setTemplate("Order/Productchange");
|
||||
Helper::renderVue($this, "OrderProductchange", "Neuer Produktwechsel", ["CONTRACT_API_URL" => $this->getUrl("Contract", "api"),
|
||||
@@ -1085,7 +1086,12 @@ class OrderController extends mfBaseController {
|
||||
} else {
|
||||
$this->log->debug(__CLASS__."::save(): NOT creating new SPIN for ".$owner->getCompanyOrName()." (".$owner->id."): SPIN exists or owner of Order was changed or external products");
|
||||
}
|
||||
|
||||
|
||||
|
||||
if($mode == "add" && $order->upgrade) {
|
||||
// send upgrade ticket
|
||||
$order->sendUpgradeEmail();
|
||||
}
|
||||
}
|
||||
|
||||
//var_dump($_FILES['OrderFileUpload']);exit;
|
||||
|
||||
Reference in New Issue
Block a user