mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 09:21:46 +08:00 
			
		
		
		
	update change order process
This commit is contained in:
		| @@ -85,6 +85,10 @@ class OrderController extends Controller | ||||
|         } else if ($plan->year_price) { | ||||
|             $dayPrice = $plan->year_price / 31536000; | ||||
|         } | ||||
|         // exclude discount | ||||
|         if ($user->discount) { | ||||
|             $dayPrice = $dayPrice * $user->discount / 100; | ||||
|         } | ||||
|         $remainingDay = $user->expired_at - time(); | ||||
|         return $remainingDay * $dayPrice; | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user