mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Handle deleted account when charging renewals
This commit is contained in:
parent
8bc3d6c937
commit
fa18feb8e5
@ -72,6 +72,9 @@ class ChargeRenewalInvoices extends Command
|
||||
|
||||
// check if account has switched to free since the invoice was created
|
||||
$account = Account::find($invoice->client->public_id);
|
||||
if ( ! $account) {
|
||||
continue;
|
||||
}
|
||||
$company = $account->company;
|
||||
if ( ! $company->plan || $company->plan == PLAN_FREE) {
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user