Merge branch 'dev' of https://gitea.lihaink.cn/mkm/multi-store into dev
This commit is contained in:
commit
c06ca03681
@ -26,6 +26,8 @@ class AccountsReceivableLogic extends BaseLogic
|
||||
$model->order_id = $order['id'];
|
||||
$model->store_id = $order['store_id'];
|
||||
$model->user_id = $order['uid'];
|
||||
$model->nickname = $order['other_data']->nickname;
|
||||
$model->phone = $order['other_data']->phone;
|
||||
$model->deadline = time() + 86400 * 15;
|
||||
$model->total_debt = $order['total_price'];
|
||||
$model->surplus_debt = $order['total_price'];
|
||||
|
@ -456,7 +456,7 @@ class BeforehandOrderLogic extends BaseLogic
|
||||
}
|
||||
BeforehandOrderCartInfo::where('bhoid', $params['bhoid'])->update(['is_buyer' => -1]);
|
||||
if ($order['is_arrears'] == 2) {
|
||||
AccountsReceivableLogic::add($order);
|
||||
AccountsReceivableLogic::add($order->toArray());
|
||||
}
|
||||
self::confirm(['id' => $params['bhoid']]);
|
||||
Db::commit();
|
||||
|
Loading…
x
Reference in New Issue
Block a user