1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Fixes for Import

This commit is contained in:
David Bomba 2021-06-08 08:09:13 +10:00
parent dd32a95a65
commit ce5f84b8c1

View File

@ -204,7 +204,7 @@ class CompanyImport implements ShouldQueue
$company_owner = $this->company->owner();
if(Ninja::isFreeHostedClient()){
if($this->company->account->isFreeHostedClient()){
if(count($backup_users) > 1){
$this->message = 'Only one user can be in the import for a Free Account';
@ -243,7 +243,7 @@ class CompanyImport implements ShouldQueue
return false;
}
if(Ninja::isFreeHostedClient() && count($this->backup_file->clients) > config('ninja.quotas.free.clients')){
if($this->company->account->isFreeHostedClient() && count($this->backup_file->clients) > config('ninja.quotas.free.clients')){
$client_count = count($this->backup_file->clients);