1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Fixes for account plan

This commit is contained in:
David Bomba 2020-10-30 07:59:47 +11:00
parent 5266239341
commit afa5f2338c

View File

@ -41,15 +41,17 @@ class RefundCancelledAccount implements ShouldQueue
$plan_details = $this->account->getPlanDetails();
/* Trial user cancelling early.... */
if ($plan_details['trial_active']) {
if(!$plan_details)
return;
}
/* Is the plan Active? */
if (! $plan_details['active']) {
/* Trial user cancelling early.... */
if ($plan_details['trial_plan'])
return;
}
/* Is the plan Active? */
if (! $plan_details['active'])
return;
/* Refundable client! */