Progress on order progress to provisioning
This commit is contained in:
@@ -58,18 +58,44 @@ class ServiceController extends Controller
|
||||
|
||||
return $this->update_order_status($o);
|
||||
|
||||
case 'PROVISION-PLANNED':
|
||||
if ($request->post()) {
|
||||
foreach (['provision_notes'] as $key) {
|
||||
$o->setOrderInfo($key,$request->post($key));
|
||||
}
|
||||
|
||||
$o->date_start = $request->post('date_start');
|
||||
|
||||
$o->save();
|
||||
|
||||
foreach ($request->post($o->stype) as $k=>$v) {
|
||||
$o->type->{$k} = $v;
|
||||
}
|
||||
|
||||
$o->type->save();
|
||||
|
||||
return redirect()->to(url('u/service',$o->id))->with('updated','Order sent notes updated.');
|
||||
}
|
||||
|
||||
return $this->update_provision_planned($o);
|
||||
|
||||
default:
|
||||
abort(499,'Not yet implemented');
|
||||
}
|
||||
}
|
||||
|
||||
private function update_order_status(Service $o)
|
||||
{
|
||||
return View('r.service.order.sent',['o'=>$o]);
|
||||
}
|
||||
|
||||
private function update_request_cancel(Service $o)
|
||||
{
|
||||
return View('u.service.order.cancel',['o'=>$o]);
|
||||
}
|
||||
|
||||
private function update_order_status(Service $o)
|
||||
private function update_provision_planned(Service $o)
|
||||
{
|
||||
return View('r.service.order.sent',['o'=>$o]);
|
||||
return View('r.service.order.provision_plan',['o'=>$o]);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user