1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

e_invoicing_token field

This commit is contained in:
Benjamin Beganović 2024-10-11 17:55:46 +02:00
parent aae830f60c
commit d45e4ad1b3
2 changed files with 16 additions and 0 deletions

View File

@ -223,6 +223,7 @@ class CompanyTransformer extends EntityTransformer
'has_quickbooks_token' => $company->quickbooks ? true : false,
'is_quickbooks_token_active' => $company->quickbooks?->accessTokenKey ?? false,
'legal_entity_id' => $company->legal_entity_id ?? null,
'e_invoicing_token' => $company->e_invoicing_token ?? null,
];
}

View File

@ -0,0 +1,15 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::table('companies', function (Blueprint $table) {
$table->string('e_invoicing_token')->nullable();
});
}
};