mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 21:24:35 -04:00
Stub PDF generator
This commit is contained in:
parent
6ad218ba19
commit
60fe4bd5cb
@ -182,8 +182,13 @@ class PreviewController extends BaseController
|
|||||||
return response()->json(['message' => 'This server cannot handle this request.'], 400);
|
return response()->json(['message' => 'This server cannot handle this request.'], 400);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$stub = new StubBuilder(auth()->user()->company(), auth()->user());
|
$stub = new StubBuilder(auth()->user()->company(), auth()->user());
|
||||||
$stub->setEntityType($request->entity_type)
|
$stub->setEntityType($request->entity_type)
|
||||||
|
->setSettings($request->settings)
|
||||||
|
->setSettingsType($request->settings_type);
|
||||||
|
|
||||||
|
|
||||||
$pdf = $stub->build()->getPdf();
|
$pdf = $stub->build()->getPdf();
|
||||||
|
|
||||||
$response = Response::make($pdf, 200);
|
$response = Response::make($pdf, 200);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user