mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Stub PDF generator
This commit is contained in:
parent
1bdc3cb565
commit
f465263d53
@ -29,12 +29,13 @@ use Illuminate\Support\Facades\DB;
|
|||||||
use App\Services\PdfMaker\PdfMaker;
|
use App\Services\PdfMaker\PdfMaker;
|
||||||
use App\Factory\GroupSettingFactory;
|
use App\Factory\GroupSettingFactory;
|
||||||
use App\Models\Design as DesignModel;
|
use App\Models\Design as DesignModel;
|
||||||
|
use App\Utils\Traits\MakesHash;
|
||||||
use App\Utils\Traits\Pdf\PageNumbering;
|
use App\Utils\Traits\Pdf\PageNumbering;
|
||||||
use Illuminate\Support\Facades\Response;
|
|
||||||
|
|
||||||
class StubBuilder
|
class StubBuilder
|
||||||
{
|
{
|
||||||
use PageNumbering;
|
use PageNumbering;
|
||||||
|
use MakesHash;
|
||||||
|
|
||||||
public $entity;
|
public $entity;
|
||||||
|
|
||||||
@ -177,7 +178,7 @@ class StubBuilder
|
|||||||
$html = new HtmlEngine($this->invitation);
|
$html = new HtmlEngine($this->invitation);
|
||||||
|
|
||||||
$design_string = "{$this->entity_type}_design_id";
|
$design_string = "{$this->entity_type}_design_id";
|
||||||
$design = DesignModel::withTrashed()->find($html->settings->{$design_string});
|
$design = DesignModel::withTrashed()->find($this->decodePrimaryKey($design_string));
|
||||||
|
|
||||||
$state = [
|
$state = [
|
||||||
'template' => $design->elements([
|
'template' => $design->elements([
|
||||||
|
Loading…
x
Reference in New Issue
Block a user