This commit is contained in:
xman 2025-07-09 10:49:14 +08:00
parent 21c422a9fe
commit 056e0ce2d3

View File

@ -144,6 +144,7 @@ class Configorder extends Backend
$data = [
'status' => Order::STATUS_AUDITING,
'online_amount' => $params['online_amount'],
'online_amount_last' => $params['online_amount_last'],
'offline_amount' => $params['offline_amount'],
// 'refund_amount' => $params['refund_amount'],
@ -161,7 +162,7 @@ class Configorder extends Backend
$cost = bcadd($params['cost'],$params['material_cost'],2);
$data['total'] = bcadd($row->online_amount,$last_amount,2);
$data['total'] = bcadd($params['online_amount'],$last_amount,2);
$data['real_amount'] = $data['total'];
$data['performance'] = bcsub($data['real_amount'],$cost,2);
$result = $row->allowField(true)->save($data);