mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Set all companies to large when performing migration
This commit is contained in:
parent
2b145e8833
commit
cccbdc5355
@ -237,7 +237,8 @@ class Import implements ShouldQueue
|
|||||||
|
|
||||||
//company size check
|
//company size check
|
||||||
if ($this->company->invoices()->count() > 500 || $this->company->products()->count() > 500 || $this->company->clients()->count() > 500) {
|
if ($this->company->invoices()->count() > 500 || $this->company->products()->count() > 500 || $this->company->clients()->count() > 500) {
|
||||||
$this->company->is_large = true;
|
// $this->company->is_large = true;
|
||||||
|
$this->company->account->companies()->update(['is_large' => true]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user