mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-31 01:47:32 -04:00 
			
		
		
		
	Merge pull request #5752 from turbo124/v5-develop
Fixes for refresh route - firstload/mini_loader
This commit is contained in:
		
						commit
						f188fada5e
					
				| @ -189,10 +189,7 @@ class BaseController extends Controller | |||||||
|     { |     { | ||||||
|         $user = auth()->user(); |         $user = auth()->user(); | ||||||
| 
 | 
 | ||||||
|         if ($user->getCompany()->is_large) |         $this->manager->parseIncludes($this->first_load); | ||||||
|           $this->manager->parseIncludes($this->mini_load); |  | ||||||
|         else |  | ||||||
|           $this->manager->parseIncludes($this->first_load); |  | ||||||
| 
 | 
 | ||||||
|         $this->serializer = request()->input('serializer') ?: EntityTransformer::API_SERIALIZER_ARRAY; |         $this->serializer = request()->input('serializer') ?: EntityTransformer::API_SERIALIZER_ARRAY; | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -8,7 +8,7 @@ | |||||||
|  * @copyright Copyright (c) 2021. Invoice Ninja LLC (https://invoiceninja.com) |  * @copyright Copyright (c) 2021. Invoice Ninja LLC (https://invoiceninja.com) | ||||||
|  * |  * | ||||||
|  * @license https://opensource.org/licenses/AAL |  * @license https://opensource.org/licenses/AAL | ||||||
|  */ | */ | ||||||
| 
 | 
 | ||||||
| namespace App\PaymentDrivers\Stripe; | namespace App\PaymentDrivers\Stripe; | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -238,6 +238,8 @@ class SubscriptionService | |||||||
|      */ |      */ | ||||||
|     private function calculateProRataRefund($invoice) :float |     private function calculateProRataRefund($invoice) :float | ||||||
|     { |     { | ||||||
|  |         if(!$this->invoice->date) | ||||||
|  |             return 0; | ||||||
|          |          | ||||||
|         $start_date = Carbon::parse($invoice->date); |         $start_date = Carbon::parse($invoice->date); | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user