Fix Issue with empty address in invoice

This commit is contained in:
Arwed Molitor 2024-03-14 20:44:05 +01:00 committed by philipp lang
parent a4c2e145e1
commit 5d256293fb
2 changed files with 4 additions and 0 deletions

View File

@ -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 >>>}

View File

@ -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 >>>}