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:
parent
5266239341
commit
afa5f2338c
@ -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! */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user