mirror of
https://github.com/v2board/v2board.git
synced 2025-06-12 12:37:54 +08:00
update order change process
This commit is contained in:
@ -143,6 +143,7 @@ class OrderController extends Controller
|
||||
$order->type = 3;
|
||||
$order->surplus_amount = $this->getSurplusValue($user);
|
||||
if ($order->surplus_amount >= $order->total_amount) {
|
||||
$order->refund_amount = $order->surplus_amount - $order->total_amount;
|
||||
$order->total_amount = 0;
|
||||
} else {
|
||||
$order->total_amount = $order->total_amount - $order->surplus_amount;
|
||||
|
Reference in New Issue
Block a user