Merge pull request #5752 from turbo124/v5-develop

Fixes for refresh route - firstload/mini_loader
This commit is contained in:
David Bomba 2021-05-19 20:43:03 +10:00 committed by GitHub
commit f188fada5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 5 deletions

View File

@ -189,10 +189,7 @@ class BaseController extends Controller
{
$user = auth()->user();
if ($user->getCompany()->is_large)
$this->manager->parseIncludes($this->mini_load);
else
$this->manager->parseIncludes($this->first_load);
$this->manager->parseIncludes($this->first_load);
$this->serializer = request()->input('serializer') ?: EntityTransformer::API_SERIALIZER_ARRAY;

View File

@ -8,7 +8,7 @@
* @copyright Copyright (c) 2021. Invoice Ninja LLC (https://invoiceninja.com)
*
* @license https://opensource.org/licenses/AAL
*/
*/
namespace App\PaymentDrivers\Stripe;

View File

@ -238,6 +238,8 @@ class SubscriptionService
*/
private function calculateProRataRefund($invoice) :float
{
if(!$this->invoice->date)
return 0;
$start_date = Carbon::parse($invoice->date);