From c05c9aa23f7cca2ba6c4dd53dc4ef3d5ec63d6d9 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sat, 25 Feb 2023 16:24:44 +1100 Subject: [PATCH] Clean up for logging --- app/Services/Pdf/PdfMock.php | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/app/Services/Pdf/PdfMock.php b/app/Services/Pdf/PdfMock.php index 39d2f393460f..219f31a993d4 100644 --- a/app/Services/Pdf/PdfMock.php +++ b/app/Services/Pdf/PdfMock.php @@ -69,6 +69,8 @@ class PdfMock $html = $pdf_service->getHtml(); + // nlog($html); + return $pdf_service->resolvePdfEngine($html); } @@ -130,6 +132,7 @@ class PdfMock { return ['values' => [ + '$client.shipping_postal_code' => '46420', '$client.billing_postal_code' => '11243', '$company.city_state_postal' => '90210', @@ -170,6 +173,7 @@ class PdfMock '$contact.first_name' => 'Benedict', '$secondary_font_url' => 'https://fonts.googleapis.com/css2?family=Roboto&display=swap', '$contact.signature' => '', + '$company_logo_size' => $this->settings->company_logo_size ?: 55, '$product.tax_name1' => '', '$product.tax_name2' => '', '$product.tax_name3' => '', @@ -362,11 +366,11 @@ NON 0029 EPD ', - '$client_name' => 'cypress', - '$client.name' => 'cypress', + '$client_name' => 'A Client Called Bob', + '$client.name' => 'A Client Called Bob', '$paymentLink' => 'http://ninja.test:8000/client/pay/UAUY8vIPuno72igmXbbpldwo5BDDKIqs', '$payment_url' => 'http://ninja.test:8000/client/pay/UAUY8vIPuno72igmXbbpldwo5BDDKIqs', - '$page_layout' => 'portrait', + '$page_layout' => $this->settings->page_layout, '$task.task1' => '', '$task.task2' => '', '$task.task3' => '', @@ -387,9 +391,9 @@ EPD '$signature' => ' ', '$id_number' => ' ', '$credit_no' => '0029', - '$font_size' => '16px', + '$font_size' => $this->settings->font_size, '$view_link' => 'View Invoice', - '$page_size' => 'A4', + '$page_size' => $this->settings->page_size, '$country_2' => 'AF', '$firstName' => 'Benedict', '$user.name' => 'Derrick Monahan DDS Erna Wunsch', @@ -496,6 +500,7 @@ EPD '$contact.first_name_label' => 'First Name', '$secondary_font_url_label' => '', '$contact.signature_label' => '', + '$company_logo_size_label' => '', '$product.tax_name1_label' => 'Tax', '$product.tax_name2_label' => 'Tax', '$product.tax_name3_label' => 'Tax',