1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Add back schema builder

This commit is contained in:
David Bomba 2024-05-27 08:05:13 +10:00
parent d8038dba70
commit 3fb923e971
2 changed files with 6 additions and 4 deletions

View File

@ -38,6 +38,7 @@ use App\Transformers\ArraySerializer;
use App\Transformers\EntityTransformer;
use League\Fractal\Resource\Collection;
use Illuminate\Database\Eloquent\Builder;
use Invoiceninja\Einvoice\Decoder\Schema;
use League\Fractal\Serializer\JsonApiSerializer;
use League\Fractal\Pagination\IlluminatePaginatorAdapter;
use Illuminate\Contracts\Container\BindingResolutionException;
@ -996,8 +997,8 @@ class BaseController extends Controller
if(request()->has('einvoice')){
// $ro = new Schema();
// $response_data['einvoice_schema'] = $ro('FACT1');
$ro = new Schema();
$response_data['einvoice_schema'] = $ro('FACT1');
}

View File

@ -13,6 +13,7 @@ namespace App\Http\Controllers;
use App\Utils\Statics;
use Illuminate\Http\Response;
use Invoiceninja\Einvoice\Decoder\Schema;
class StaticController extends BaseController
{
@ -60,8 +61,8 @@ class StaticController extends BaseController
if(request()->has('einvoice')){
// $schema = new Schema();
// $response_data['einvoice_schema'] = $schema('FACT1');
$schema = new Schema();
$response_data['einvoice_schema'] = $schema('FACT1');
}