From 2b05a2bab8ab9c17d02b440427a2493fab825094 Mon Sep 17 00:00:00 2001 From: Arwed Molitor Date: Thu, 14 Mar 2024 20:44:05 +0100 Subject: [PATCH] Fix Issue with empty address in invoice --- resources/views/tex/invoice/bill.tex | 2 ++ resources/views/tex/invoice/remember.tex | 2 ++ 2 files changed, 4 insertions(+) diff --git a/resources/views/tex/invoice/bill.tex b/resources/views/tex/invoice/bill.tex index 672deebd..bcaf6d4c 100644 --- a/resources/views/tex/invoice/bill.tex +++ b/resources/views/tex/invoice/bill.tex @@ -14,7 +14,9 @@ \KOMAoptions{fromurl} \setkomavar{fromurl}[Website: ]{<<<$settings->website>>>} @endif +@if($settings->address && $settings->zip && $settings->place) \setkomavar{fromaddress}{<<<$settings->address>>>\\<<<$settings->zip>>> <<<$settings->place>>>} +@endif \begin{document} \begin{letter}{<<< $toName >>>\\<<< $toAddress >>>\\<<< $toZip >>> <<< $toLocation >>>} diff --git a/resources/views/tex/invoice/remember.tex b/resources/views/tex/invoice/remember.tex index 1fcaac81..79005d23 100644 --- a/resources/views/tex/invoice/remember.tex +++ b/resources/views/tex/invoice/remember.tex @@ -14,7 +14,9 @@ \KOMAoptions{fromurl} \setkomavar{fromurl}[Website: ]{<<<$settings->website>>>} @endif +@if($settings->address && $settings->zip && $settings->place) \setkomavar{fromaddress}{<<<$settings->address>>>\\<<<$settings->zip>>> <<<$settings->place>>>} +@endif \begin{document} \begin{letter}{<<< $toName >>>\\<<< $toAddress >>>\\<<< $toZip >>> <<< $toLocation >>>}