diff --git a/app/Services/PdfMaker/Designs/Bold.php b/app/Services/PdfMaker/Designs/Bold.php index cebddd7d7..3e43f9b18 100644 --- a/app/Services/PdfMaker/Designs/Bold.php +++ b/app/Services/PdfMaker/Designs/Bold.php @@ -117,6 +117,10 @@ class Bold extends BaseDesign { $variables = $this->entity->company->settings->pdf_variables->invoice_details; + if ($this->entity instanceof \App\Models\Quote) { + $variables = $this->entity->company->settings->pdf_variables->quote_details; + } + $elements = []; foreach ($variables as $variable) { diff --git a/app/Services/PdfMaker/Designs/Business.php b/app/Services/PdfMaker/Designs/Business.php index 05fcc461c..ed86575e7 100644 --- a/app/Services/PdfMaker/Designs/Business.php +++ b/app/Services/PdfMaker/Designs/Business.php @@ -117,6 +117,10 @@ class Business extends BaseDesign { $variables = $this->entity->company->settings->pdf_variables->invoice_details; + if ($this->entity instanceof \App\Models\Quote) { + $variables = $this->entity->company->settings->pdf_variables->quote_details; + } + $elements = []; foreach ($variables as $variable) { diff --git a/app/Services/PdfMaker/Designs/Clean.php b/app/Services/PdfMaker/Designs/Clean.php index 267ce5e56..047761cc1 100644 --- a/app/Services/PdfMaker/Designs/Clean.php +++ b/app/Services/PdfMaker/Designs/Clean.php @@ -104,6 +104,10 @@ class Clean extends BaseDesign { $variables = $this->entity->company->settings->pdf_variables->invoice_details; + if ($this->entity instanceof \App\Models\Quote) { + $variables = $this->entity->company->settings->pdf_variables->quote_details; + } + $elements = []; foreach ($variables as $variable) { diff --git a/app/Services/PdfMaker/Designs/Creative.php b/app/Services/PdfMaker/Designs/Creative.php index eace96b28..a4b2e38ea 100644 --- a/app/Services/PdfMaker/Designs/Creative.php +++ b/app/Services/PdfMaker/Designs/Creative.php @@ -117,6 +117,10 @@ class Creative extends BaseDesign { $variables = $this->entity->company->settings->pdf_variables->invoice_details; + if ($this->entity instanceof \App\Models\Quote) { + $variables = $this->entity->company->settings->pdf_variables->quote_details; + } + $elements = []; foreach ($variables as $variable) { diff --git a/app/Services/PdfMaker/Designs/Elegant.php b/app/Services/PdfMaker/Designs/Elegant.php index 37f9edddb..c2a518bbf 100644 --- a/app/Services/PdfMaker/Designs/Elegant.php +++ b/app/Services/PdfMaker/Designs/Elegant.php @@ -78,6 +78,10 @@ class Elegant extends BaseDesign { $variables = $this->entity->company->settings->pdf_variables->invoice_details; + if ($this->entity instanceof \App\Models\Quote) { + $variables = $this->entity->company->settings->pdf_variables->quote_details; + } + $elements = []; foreach ($variables as $variable) { diff --git a/app/Services/PdfMaker/Designs/Hipster.php b/app/Services/PdfMaker/Designs/Hipster.php index 7ccea85de..21c14d904 100644 --- a/app/Services/PdfMaker/Designs/Hipster.php +++ b/app/Services/PdfMaker/Designs/Hipster.php @@ -117,6 +117,10 @@ class Hipster extends BaseDesign { $variables = $this->entity->company->settings->pdf_variables->invoice_details; + if ($this->entity instanceof \App\Models\Quote) { + $variables = $this->entity->company->settings->pdf_variables->quote_details; + } + $elements = []; foreach ($variables as $variable) { diff --git a/app/Services/PdfMaker/Designs/Modern.php b/app/Services/PdfMaker/Designs/Modern.php index 7710f00bc..96dfa8c83 100644 --- a/app/Services/PdfMaker/Designs/Modern.php +++ b/app/Services/PdfMaker/Designs/Modern.php @@ -78,6 +78,10 @@ class Modern extends BaseDesign { $variables = $this->entity->company->settings->pdf_variables->invoice_details; + if ($this->entity instanceof \App\Models\Quote) { + $variables = $this->entity->company->settings->pdf_variables->quote_details; + } + $elements = []; foreach ($variables as $variable) { diff --git a/app/Services/PdfMaker/Designs/Plain.php b/app/Services/PdfMaker/Designs/Plain.php index 9755adfd6..0094b0b62 100644 --- a/app/Services/PdfMaker/Designs/Plain.php +++ b/app/Services/PdfMaker/Designs/Plain.php @@ -87,6 +87,10 @@ class Plain extends BaseDesign { $variables = $this->entity->company->settings->pdf_variables->invoice_details; + if ($this->entity instanceof \App\Models\Quote) { + $variables = $this->entity->company->settings->pdf_variables->quote_details; + } + $elements = []; foreach ($variables as $variable) { diff --git a/app/Services/PdfMaker/Designs/Playful.php b/app/Services/PdfMaker/Designs/Playful.php index 59bf78e29..7b7372abd 100644 --- a/app/Services/PdfMaker/Designs/Playful.php +++ b/app/Services/PdfMaker/Designs/Playful.php @@ -78,6 +78,10 @@ class Playful extends BaseDesign { $variables = $this->entity->company->settings->pdf_variables->invoice_details; + if ($this->entity instanceof \App\Models\Quote) { + $variables = $this->entity->company->settings->pdf_variables->quote_details; + } + $elements = []; foreach ($variables as $variable) {