Skip to content

Commit

Permalink
Update to include invoice-footer
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaspanni committed Dec 27, 2022
1 parent f1a9c37 commit ed574c2
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
7 changes: 7 additions & 0 deletions examples/invoice/letter.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ date: 01.01.2023
subject: Musterbrief
signature: Erika Musterfrau
invoice: 123456789
frombank: |
Musterbank
IBAN: DE12345678901234567890
BIC: MUBADEF1XXX
printinvoicefooter: true
printfooteraddress: true
ustID: DE123456789
...

vielen Dank für Ihren Auftrag. Bitte überweisen Sie den im Folgenden aufgeführten Rechnungsbetrag innerhalb von 14 Tagen auf das angegebene Konto.
Expand Down
39 changes: 39 additions & 0 deletions letter.latex
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,45 @@ $if(closing)$\setkomavar{closing}{$closing$}$endif$
$if(enclseparator)$\setkomavar*{enclseparator}{$enclseparator$}$endif$
% END OVERRIDES

$if(printinvoicefooter)$
\setplength{firstfootvpos}{270mm}
\setkomavar{firstfoot}{\usekomafont{pageheadfoot}\usekomafont{pagefoot}
\parbox[t]{\textwidth}{
\rule[3pt]{\linewidth}{.4pt} \\
\begin{tabular}[t]{l@{}}
$if(printfooteraddress)$
$fromname$\\
$for(fromaddress)$
$fromaddress$$sep$\\
$endfor$
$endif$
% either taxNumber or USt-ID has to be present
$if(taxNumber)$
\\Steuernummer: $taxNumber$
$endif$
$if(ustID)$
\\USt-ID: $ustID$
$endif$
\end{tabular}
\hfill
\begin{tabular}[t]{l@{}}
$if(phone)$Telefon: $phone$\\$endif$
$fromemail$\\
\end{tabular}
\hfill
$if(frombank)$
\begin{tabular}[t]{l@{}}
$for(frombank)$
$frombank$$sep$\\
$endfor$
\end{tabular}
$endif$
}
}
$endif$



\begin{document}
$if(has-frontmatter)$
\frontmatter
Expand Down

0 comments on commit ed574c2

Please sign in to comment.