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