Fix Issue with empty address in invoice
continuous-integration/drone/push Build is passing Details

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

View File

@ -14,7 +14,9 @@
\KOMAoptions{fromurl} \KOMAoptions{fromurl}
\setkomavar{fromurl}[Website: ]{<<<$settings->website>>>} \setkomavar{fromurl}[Website: ]{<<<$settings->website>>>}
@endif @endif
@if($settings->address && $settings->zip && $settings->place)
\setkomavar{fromaddress}{<<<$settings->address>>>\\<<<$settings->zip>>> <<<$settings->place>>>} \setkomavar{fromaddress}{<<<$settings->address>>>\\<<<$settings->zip>>> <<<$settings->place>>>}
@endif
\begin{document} \begin{document}
\begin{letter}{<<< $toName >>>\\<<< $toAddress >>>\\<<< $toZip >>> <<< $toLocation >>>} \begin{letter}{<<< $toName >>>\\<<< $toAddress >>>\\<<< $toZip >>> <<< $toLocation >>>}

View File

@ -14,7 +14,9 @@
\KOMAoptions{fromurl} \KOMAoptions{fromurl}
\setkomavar{fromurl}[Website: ]{<<<$settings->website>>>} \setkomavar{fromurl}[Website: ]{<<<$settings->website>>>}
@endif @endif
@if($settings->address && $settings->zip && $settings->place)
\setkomavar{fromaddress}{<<<$settings->address>>>\\<<<$settings->zip>>> <<<$settings->place>>>} \setkomavar{fromaddress}{<<<$settings->address>>>\\<<<$settings->zip>>> <<<$settings->place>>>}
@endif
\begin{document} \begin{document}
\begin{letter}{<<< $toName >>>\\<<< $toAddress >>>\\<<< $toZip >>> <<< $toLocation >>>} \begin{letter}{<<< $toName >>>\\<<< $toAddress >>>\\<<< $toZip >>> <<< $toLocation >>>}