aftersale
This commit is contained in:
parent
480e7361a9
commit
d3f794a517
|
|
@ -129,8 +129,10 @@ class Aftersale extends Backend
|
|||
}
|
||||
$params['admin_id'] = $this->auth->id;
|
||||
$params['admin_user'] = $this->auth->nickname;
|
||||
$params['worker_id'] = $order->dispatch->worker_id;
|
||||
$params['worker_name'] = $order->dispatch->worker_name;
|
||||
if(!empty($order->dispatch)){
|
||||
$params['worker_id'] = $order->dispatch->worker_id;
|
||||
$params['worker_name'] = $order->dispatch->worker_name;
|
||||
}
|
||||
$result = $this->model->allowField(true)->save($params);
|
||||
$order->aftersale_id = $this->model->id;
|
||||
$order->save();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user