Prevent Template Service from running over statements due to long data parsing

This commit is contained in:
David Bomba 2023-11-14 19:58:28 +11:00
parent 57a2a836f1
commit d254ff5336

View File

@ -100,13 +100,13 @@ class Statement
], \App\Services\PdfMaker\Design::STATEMENT), ], \App\Services\PdfMaker\Design::STATEMENT),
'variables' => $variables, 'variables' => $variables,
'options' => [ 'options' => [
'client' => $this->client, // 'client' => $this->client,
'entity' => $this->entity, // 'entity' => $this->entity,
'variables' => $variables, // 'variables' => $variables,
'invoices' => $this->getInvoices()->cursor(), // 'invoices' => $this->getInvoices()->cursor(),
'payments' => $this->getPayments()->cursor(), // 'payments' => $this->getPayments()->cursor(),
'credits' => $this->getCredits()->cursor(), // 'credits' => $this->getCredits()->cursor(),
'aging' => $this->getAging(), // 'aging' => $this->getAging(),
], ],
'process_markdown' => $this->entity->client->company->markdown_enabled, 'process_markdown' => $this->entity->client->company->markdown_enabled,
]; ];