mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2026-03-03 03:07:01 +00:00
Fixes for qb imports without direction access to QB API
This commit is contained in:
@@ -4,6 +4,7 @@ namespace App\Import\Providers;
|
||||
|
||||
use App\Models\Company;
|
||||
use App\Models\Invoice;
|
||||
use App\Import\Providers\BaseImport;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use App\Services\Quickbooks\QuickbooksService;
|
||||
use App\Services\Quickbooks\Transformers\ClientTransformer;
|
||||
|
||||
@@ -62,6 +62,8 @@ class QuickbooksService
|
||||
private function init(): self
|
||||
{
|
||||
|
||||
if(config('services.quickbooks.client_id'))
|
||||
{
|
||||
$config = [
|
||||
'ClientID' => config('services.quickbooks.client_id'),
|
||||
'ClientSecret' => config('services.quickbooks.client_secret'),
|
||||
@@ -80,6 +82,7 @@ class QuickbooksService
|
||||
$this->sdk->throwExceptionOnError(true);
|
||||
|
||||
$this->checkToken();
|
||||
}
|
||||
|
||||
$this->invoice = new QbInvoice($this);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user