mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 17:24:36 -04:00
Working on L5.3
This commit is contained in:
parent
237a491a62
commit
c1adf2ca85
@ -22,10 +22,10 @@ class AddInvoiceNumberSettings extends Migration
|
||||
});
|
||||
|
||||
// set initial counter value for accounts with invoices
|
||||
$accounts = DB::table('accounts')->lists('id');
|
||||
$accounts = DB::table('accounts')->pluck('id');
|
||||
|
||||
foreach ($accounts as $accountId) {
|
||||
$invoiceNumbers = DB::table('invoices')->where('account_id', $accountId)->lists('invoice_number');
|
||||
$invoiceNumbers = DB::table('invoices')->where('account_id', $accountId)->pluck('invoice_number');
|
||||
$max = 0;
|
||||
|
||||
foreach ($invoiceNumbers as $invoiceNumber) {
|
||||
|
@ -71,7 +71,7 @@ class EnterprisePlan extends Migration
|
||||
$query->whereNull('users.public_id');
|
||||
$query->orWhere('users.public_id', '=', 0);
|
||||
})
|
||||
->lists('users.account_id');
|
||||
->pluck('users.account_id');
|
||||
|
||||
if (count($single_account_ids)) {
|
||||
foreach (Account::find($single_account_ids) as $account) {
|
||||
@ -207,7 +207,7 @@ class EnterprisePlan extends Migration
|
||||
$query->whereNotNull('companies.plan_paid');
|
||||
$query->orWhereNotNull('companies.trial_started');
|
||||
})
|
||||
->lists('companies.id');
|
||||
->pluck('companies.id');
|
||||
|
||||
$company_ids = array_unique($company_ids);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user