mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 07:44:38 -04:00
Fixes for recurring invoice number for pending plans
This commit is contained in:
parent
83b99f296f
commit
ce2ad45015
@ -163,7 +163,7 @@ class NinjaPlanController extends Controller
|
|||||||
$recurring_invoice->save();
|
$recurring_invoice->save();
|
||||||
$r = $recurring_invoice->calc()->getRecurringInvoice();
|
$r = $recurring_invoice->calc()->getRecurringInvoice();
|
||||||
|
|
||||||
$recurring_invoice->service()->start()->save();
|
$recurring_invoice->service()->applyNumber()->start()->save();
|
||||||
|
|
||||||
LightLogs::create(new TrialStarted())
|
LightLogs::create(new TrialStarted())
|
||||||
->increment()
|
->increment()
|
||||||
|
@ -52,6 +52,9 @@ class SetupController extends Controller
|
|||||||
if ($check['system_health'] == true && $check['simple_db_check'] && Schema::hasTable('accounts') && $account = Account::all()->first()) {
|
if ($check['system_health'] == true && $check['simple_db_check'] && Schema::hasTable('accounts') && $account = Account::all()->first()) {
|
||||||
return redirect('/');
|
return redirect('/');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(Ninja::isHosted())
|
||||||
|
return redirect('/');
|
||||||
|
|
||||||
return view('setup.index', ['check' => $check]);
|
return view('setup.index', ['check' => $check]);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user