mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 08:24:39 -04:00
Minor cleanup
This commit is contained in:
parent
174d0d3338
commit
ea9a3f4ca3
@ -96,22 +96,6 @@ class CreateEntityPdf implements ShouldQueue
|
|||||||
|
|
||||||
$file_path = $path.$this->entity->numberFormatter().'.pdf';
|
$file_path = $path.$this->entity->numberFormatter().'.pdf';
|
||||||
|
|
||||||
// $state = [
|
|
||||||
// 'template' => $template->elements([
|
|
||||||
// 'client' => $this->client,
|
|
||||||
// 'entity' => $this->entity,
|
|
||||||
// 'pdf_variables' => (array) $this->company->settings->pdf_variables,
|
|
||||||
// '$product' => $design->design->product,
|
|
||||||
// 'variables' => $variables,
|
|
||||||
// ]),
|
|
||||||
// 'variables' => $variables,
|
|
||||||
// 'options' => [
|
|
||||||
// 'all_pages_header' => $this->entity->client->getSetting('all_pages_header'),
|
|
||||||
// 'all_pages_footer' => $this->entity->client->getSetting('all_pages_footer'),
|
|
||||||
// ],
|
|
||||||
// 'process_markdown' => $this->entity->client->company->markdown_enabled,
|
|
||||||
// ];
|
|
||||||
|
|
||||||
$pdf = (new PdfService($this->invitation))->getPdf();
|
$pdf = (new PdfService($this->invitation))->getPdf();
|
||||||
|
|
||||||
$endtime = microtime(true);
|
$endtime = microtime(true);
|
||||||
|
@ -81,7 +81,7 @@ class PdfBuilder
|
|||||||
* Final method to get compiled HTML.
|
* Final method to get compiled HTML.
|
||||||
*
|
*
|
||||||
* @param bool $final @deprecated // is it? i still see it being called elsewhere
|
* @param bool $final @deprecated // is it? i still see it being called elsewhere
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function getCompiledHTML($final = false)
|
public function getCompiledHTML($final = false)
|
||||||
{
|
{
|
||||||
@ -655,7 +655,6 @@ class PdfBuilder
|
|||||||
public function buildTableHeader(string $type): array
|
public function buildTableHeader(string $type): array
|
||||||
{
|
{
|
||||||
$this->processTaxColumns($type);
|
$this->processTaxColumns($type);
|
||||||
// $this->processCustomColumns($type);
|
|
||||||
|
|
||||||
$elements = [];
|
$elements = [];
|
||||||
|
|
||||||
|
@ -13,6 +13,9 @@ namespace App\Services\Pdf;
|
|||||||
|
|
||||||
use App\Models\Account;
|
use App\Models\Account;
|
||||||
use App\Models\Company;
|
use App\Models\Company;
|
||||||
|
use App\Models\CreditInvitation;
|
||||||
|
use App\Models\InvoiceInvitation;
|
||||||
|
use App\Models\QuoteInvitation;
|
||||||
use App\Services\Pdf\PdfConfiguration;
|
use App\Services\Pdf\PdfConfiguration;
|
||||||
use App\Utils\HostedPDF\NinjaPdf;
|
use App\Utils\HostedPDF\NinjaPdf;
|
||||||
use App\Utils\HtmlEngine;
|
use App\Utils\HtmlEngine;
|
||||||
@ -25,7 +28,7 @@ class PdfService
|
|||||||
|
|
||||||
use PdfMaker, PageNumbering;
|
use PdfMaker, PageNumbering;
|
||||||
|
|
||||||
public $invitation;
|
public InvoiceInvitation | QuoteInvitation | CreditInvitation $invitation;
|
||||||
|
|
||||||
public Company $company;
|
public Company $company;
|
||||||
|
|
||||||
@ -76,7 +79,7 @@ class PdfService
|
|||||||
* attempts to generate a PDF from the HTML
|
* attempts to generate a PDF from the HTML
|
||||||
* string.
|
* string.
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return mixed | Exception
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public function getPdf()
|
public function getPdf()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user