aftersale
This commit is contained in:
parent
f4cae762e1
commit
480e7361a9
|
|
@ -132,6 +132,8 @@ class Aftersale extends Backend
|
||||||
$params['worker_id'] = $order->dispatch->worker_id;
|
$params['worker_id'] = $order->dispatch->worker_id;
|
||||||
$params['worker_name'] = $order->dispatch->worker_name;
|
$params['worker_name'] = $order->dispatch->worker_name;
|
||||||
$result = $this->model->allowField(true)->save($params);
|
$result = $this->model->allowField(true)->save($params);
|
||||||
|
$order->aftersale_id = $this->model->id;
|
||||||
|
$order->save();
|
||||||
Db::commit();
|
Db::commit();
|
||||||
} catch (ValidateException|PDOException|Exception $e) {
|
} catch (ValidateException|PDOException|Exception $e) {
|
||||||
Db::rollback();
|
Db::rollback();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user