mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
update change order process
This commit is contained in:
parent
9f5be4e83a
commit
568648dc2f
@ -86,8 +86,8 @@ class OrderController extends Controller
|
||||
$dayPrice = $plan->year_price / 31536000;
|
||||
}
|
||||
// exclude discount
|
||||
if ($user->discount) {
|
||||
$dayPrice = $dayPrice * $user->discount / 100;
|
||||
if ($user->discount && $dayPrice) {
|
||||
$dayPrice = $dayPrice - ($dayPrice * $user->discount / 100);
|
||||
}
|
||||
$remainingDay = $user->expired_at - time();
|
||||
return $remainingDay * $dayPrice;
|
||||
|
Loading…
Reference in New Issue
Block a user