diff --git a/app/Jobs/Company/CompanyImport.php b/app/Jobs/Company/CompanyImport.php index ed5155ed43..c096492665 100644 --- a/app/Jobs/Company/CompanyImport.php +++ b/app/Jobs/Company/CompanyImport.php @@ -642,12 +642,15 @@ class CompanyImport implements ShouldQueue private function import_e_invoicing_tokens() { - $this->genericNewClassImport( - EInvoicingToken::class, + $this->genericImportWithoutCompany( + \App\Models\EInvoicingToken::class, [], [], - 'e_invoicing_tokens' + 'e_invoicing_tokens', + 'token' ); + + return $this; } private function import_schedulers() @@ -1654,7 +1657,7 @@ class CompanyImport implements ShouldQueue $new_obj->save(['timestamps' => false]); - if ($new_obj instanceof CompanyLedger) { + if ($new_obj instanceof CompanyLedger || $new_obj instanceof EInvoicingToken) { } else { $this->ids["{$object_property}"]["{$obj->hashed_id}"] = $new_obj->id; } diff --git a/lang/en/texts.php b/lang/en/texts.php index dfbe3adc86..9220ceaac8 100644 --- a/lang/en/texts.php +++ b/lang/en/texts.php @@ -5496,6 +5496,7 @@ $lang = array( 'currency_samoan_tala' => 'Samoan Tala', 'confirm_duplicate_gateway' => 'Are you sure you want to create another connection?', 'clients_limit' => 'You have reached your client limit. Please upgrade your plan.', + 'remaining_hours' => 'Remaining Hours', ); return $lang;