This commit is contained in:
mkm 2025-02-07 10:49:29 +08:00
commit c06ca03681
2 changed files with 3 additions and 1 deletions

View File

@ -26,6 +26,8 @@ class AccountsReceivableLogic extends BaseLogic
$model->order_id = $order['id']; $model->order_id = $order['id'];
$model->store_id = $order['store_id']; $model->store_id = $order['store_id'];
$model->user_id = $order['uid']; $model->user_id = $order['uid'];
$model->nickname = $order['other_data']->nickname;
$model->phone = $order['other_data']->phone;
$model->deadline = time() + 86400 * 15; $model->deadline = time() + 86400 * 15;
$model->total_debt = $order['total_price']; $model->total_debt = $order['total_price'];
$model->surplus_debt = $order['total_price']; $model->surplus_debt = $order['total_price'];

View File

@ -456,7 +456,7 @@ class BeforehandOrderLogic extends BaseLogic
} }
BeforehandOrderCartInfo::where('bhoid', $params['bhoid'])->update(['is_buyer' => -1]); BeforehandOrderCartInfo::where('bhoid', $params['bhoid'])->update(['is_buyer' => -1]);
if ($order['is_arrears'] == 2) { if ($order['is_arrears'] == 2) {
AccountsReceivableLogic::add($order); AccountsReceivableLogic::add($order->toArray());
} }
self::confirm(['id' => $params['bhoid']]); self::confirm(['id' => $params['bhoid']]);
Db::commit(); Db::commit();