From 2f408045689950a4a0d40bacdac328b92e650218 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Mon, 10 Aug 2020 13:18:05 +0200 Subject: [PATCH] Update designs so they reference Invoice or Quote --- app/Utils/HtmlEngine.php | 11 +++++------ resources/views/pdf-designs/clean.html | 2 +- resources/views/pdf-designs/elegant.html | 3 +++ resources/views/pdf-designs/modern.html | 5 +++++ resources/views/pdf-designs/plain.html | 5 +++++ resources/views/pdf-designs/playful.html | 7 ++++++- 6 files changed, 25 insertions(+), 8 deletions(-) diff --git a/app/Utils/HtmlEngine.php b/app/Utils/HtmlEngine.php index c37d944c5d..f8b2fd4b7c 100644 --- a/app/Utils/HtmlEngine.php +++ b/app/Utils/HtmlEngine.php @@ -118,7 +118,7 @@ class HtmlEngine $data['$invoice.total_taxes'] = &$data['$total_taxes']; if ($this->entity_string == 'invoice') { - $data['$entity_label'] = ['value' => '', 'label' => ctrans('texts.invoice')]; + $data['$entity'] = ['value' => '', 'label' => ctrans('texts.invoice')]; $data['$number'] = ['value' => $this->entity->number ?: ' ', 'label' => ctrans('texts.invoice_number')]; $data['$entity.terms'] = ['value' => $this->entity->terms ?: ' ', 'label' => ctrans('texts.invoice_terms')]; $data['$terms'] = &$data['$entity.terms']; @@ -126,7 +126,7 @@ class HtmlEngine } if ($this->entity_string == 'quote') { - $data['$entity_label'] = ['value' => '', 'label' => ctrans('texts.quote')]; + $data['$entity'] = ['value' => '', 'label' => ctrans('texts.quote')]; $data['$number'] = ['value' => $this->entity->number ?: ' ', 'label' => ctrans('texts.quote_number')]; $data['$entity.terms'] = ['value' => $this->entity->terms ?: ' ', 'label' => ctrans('texts.quote_terms')]; $data['$terms'] = &$data['$entity.terms']; @@ -134,7 +134,7 @@ class HtmlEngine } if ($this->entity_string == 'credit') { - $data['$entity_label'] = ['value' => '', 'label' => ctrans('texts.credit')]; + $data['$entity'] = ['value' => '', 'label' => ctrans('texts.credit')]; $data['$number'] = ['value' => $this->entity->number ?: ' ', 'label' => ctrans('texts.credit_number')]; $data['$entity.terms'] = ['value' => $this->entity->terms ?: ' ', 'label' => ctrans('texts.credit_terms')]; $data['$terms'] = &$data['$entity.terms']; @@ -177,9 +177,8 @@ class HtmlEngine $data['$invoice.public_notes'] = ['value' => $this->entity->public_notes ?: ' ', 'label' => ctrans('texts.public_notes')]; $data['$entity.public_notes'] = &$data['$invoice.public_notes']; - $data['$entity_issued_to'] = ['value' => '', 'label' => ctrans("texts.{$this->entity_string}_issued_to")]; - - $data['$your_' . $this->entity_string] = ['value' => '', 'label' => ctrans("texts.your_{$this->entity_string}")]; + $data['$entity_issued_to'] = ['value' => '', 'label' => ctrans("texts.{$this->entity_string}_issued_to")]; + $data['$your_entity'] = ['value' => '', 'label' => ctrans("texts.your_{$this->entity_string}")]; $data['$quote.date'] = ['value' => $this->entity->date ?: ' ', 'label' => ctrans('texts.quote_date')]; $data['$quote.number'] = ['value' => $this->entity->number ?: ' ', 'label' => ctrans('texts.quote_number')]; diff --git a/resources/views/pdf-designs/clean.html b/resources/views/pdf-designs/clean.html index 77b3847c70..df44b4a7b6 100644 --- a/resources/views/pdf-designs/clean.html +++ b/resources/views/pdf-designs/clean.html @@ -34,7 +34,7 @@ -

$entity_label

+

$entity_label

diff --git a/resources/views/pdf-designs/elegant.html b/resources/views/pdf-designs/elegant.html index ad8e72c47b..4bb0858a61 100644 --- a/resources/views/pdf-designs/elegant.html +++ b/resources/views/pdf-designs/elegant.html @@ -24,6 +24,9 @@
+
+

$your_entity_label

+
diff --git a/resources/views/pdf-designs/modern.html b/resources/views/pdf-designs/modern.html index 4807d549b3..22ec9df4c3 100644 --- a/resources/views/pdf-designs/modern.html +++ b/resources/views/pdf-designs/modern.html @@ -30,6 +30,11 @@
+
+

+ $your_entity_label +

+
+
+

+ $your_entity_label +

+
diff --git a/resources/views/pdf-designs/playful.html b/resources/views/pdf-designs/playful.html index 6920764428..beeee6b5bb 100644 --- a/resources/views/pdf-designs/playful.html +++ b/resources/views/pdf-designs/playful.html @@ -15,7 +15,7 @@ #product-table tbody > tr > td:first-child { color: #9b2c2c; } - + #product-table tbody > tr > td:last-child { color: #9b2c2c; font-weight: bold; @@ -39,6 +39,11 @@
+
+

+ $your_entity_label +

+

$to_label: