Skip to content

Commit

Permalink
add support for billing_address
Browse files Browse the repository at this point in the history
  • Loading branch information
TeXhackse committed Dec 8, 2023
1 parent c0664cc commit 510bf23
Show file tree
Hide file tree
Showing 7 changed files with 120 additions and 53 deletions.
17 changes: 12 additions & 5 deletions templates/print/marei/check.tex
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,18 @@

\begin{document}

\begin{letter}{
<%name%>\ifhmode\\\fi
<%street%>\ifhmode\\\fi
<%zipcode%> <%city%>\ifhmode\\\fi
<%country%>%
\begin{letter}{%
<%if billing_address_id%>%
<%billing_address_name%> \strut\\%
<%billing_address_street%>\strut\\%
<%billing_address_zipcode%> <%billing_address_city%> \strut\\%
<%billing_address_country%>\strut\\%
<%else%>%
<%name%>\strut\\%
<%street%>\strut\\%
<%zipcode%> <%city%>\strut\\%
<%country%>\strut%
<%end if%>%
}

\opening{<%company%>}
Expand Down
26 changes: 18 additions & 8 deletions templates/print/marei/credit_note.tex
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,24 @@

\begin{document}

\begin{letter}{
<%name%>\strut\\
<%if department_1%><%department_1%>\\<%end if%>%
<%if department_2%><%department_2%>\\<%end if%>%
<%cp_givenname%> <%cp_name%>\strut\\
<%street%>\strut\\
<%zipcode%> <%city%>\strut\\
<%country%> \strut
\begin{letter}{%
<%if billing_address_id%>%
<%billing_address_name%> \strut\\%
<%if department_1%><%billing_address_department_1%>\\<%end if%>%
<%if department_2%><%billing_address_department_2%>\\<%end if%>%
<%cp_title%> <%cp_givenname%> <%cp_name%>\strut\\%
<%billing_address_street%>\strut\\%
<%billing_address_zipcode%> <%billing_address_city%> \strut\\%
<%billing_address_country%>\strut\\%
<%else%>%
<%name%>\strut\\%
<%if department_1%><%department_1%>\\<%end if%>%
<%if department_2%><%department_2%>\\<%end if%>%
<%cp_title%> <%cp_givenname%> <%cp_name%>\strut\\%
<%street%>\strut\\%
<%zipcode%> <%city%>\strut\\%
<%country%>\strut%
<%end if%>%
}

% Bei Kontaktperson Anrede nach Geschlecht unterscheiden.
Expand Down
26 changes: 18 additions & 8 deletions templates/print/marei/invoice.tex
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,24 @@

\begin{document}

\begin{letter}{
<%name%>\strut\\
<%if department_1%><%department_1%>\\<%end if%>%
<%if department_2%><%department_2%>\\<%end if%>%
<%cp_givenname%> <%cp_name%>\strut\\
<%street%>\strut\\
<%zipcode%> <%city%>\strut\\
<%country%> \strut
\begin{letter}{%
<%if billing_address_id%>%
<%billing_address_name%> \strut\\%
<%if department_1%><%billing_address_department_1%>\\<%end if%>%
<%if department_2%><%billing_address_department_2%>\\<%end if%>%
<%cp_title%> <%cp_givenname%> <%cp_name%>\strut\\%me%>\strut\\%me%>\strut\\%me%>\strut\\%
<%billing_address_street%>\strut\\%
<%billing_address_zipcode%> <%billing_address_city%> \strut\\%
<%billing_address_country%>\strut\\%
<%else%>%
<%name%>\strut\\%
<%if department_1%><%department_1%>\\<%end if%>%
<%if department_2%><%department_2%>\\<%end if%>%
<%cp_title%> <%cp_givenname%> <%cp_name%>\strut\\%
<%street%>\strut\\%
<%zipcode%> <%city%>\strut\\%
<%country%>\strut%
<%end if%>%
}

% Bei Kontaktperson Anrede nach Geschlecht unterscheiden.
Expand Down
26 changes: 18 additions & 8 deletions templates/print/marei/proforma.tex
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,24 @@
\makeatother
<%end if%>%

\begin{letter}{
<%name%>\strut\\
<%if department_1%><%department_1%>\\<%end if%>%
<%if department_2%><%department_2%>\\<%end if%>%
<%cp_givenname%> <%cp_name%>\strut\\
<%street%>\strut\\
<%zipcode%> <%city%>\strut\\
<%country%> \strut
\begin{letter}{%
<%if billing_address_id%>%
<%billing_address_name%> \strut\\%
<%if department_1%><%billing_address_department_1%>\\<%end if%>%
<%if department_2%><%billing_address_department_2%>\\<%end if%>%
<%cp_title%> <%cp_givenname%> <%cp_name%>\strut\\%
<%billing_address_street%>\strut\\%
<%billing_address_zipcode%> <%billing_address_city%> \strut\\%
<%billing_address_country%>\strut\\%
<%else%>%
<%name%>\strut\\%
<%if department_1%><%department_1%>\\<%end if%>%
<%if department_2%><%department_2%>\\<%end if%>%
<%cp_title%> <%cp_givenname%> <%cp_name%>\strut\\%
<%street%>\strut\\%
<%zipcode%> <%city%>\strut\\%
<%country%>\strut%
<%end if%>%
}

% Bei Kontaktperson Anrede nach Geschlecht unterscheiden.
Expand Down
26 changes: 18 additions & 8 deletions templates/print/marei/statement.tex
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,24 @@

\begin{document}

\begin{letter}{
<%name%>\strut\\
<%if department_1%><%department_1%>\\<%end if%>%
<%if department_2%><%department_2%>\\<%end if%>%
<%cp_givenname%> <%cp_name%>\strut\\
<%street%>\strut\\
<%zipcode%> <%city%>\strut\\
<%country%> \strut
\begin{letter}{%
<%if billing_address_id%>%
<%billing_address_name%> \strut\\%
<%if department_1%><%billing_address_department_1%>\\<%end if%>%
<%if department_2%><%billing_address_department_2%>\\<%end if%>%
<%cp_title%> <%cp_givenname%> <%cp_name%>\strut\\%
<%billing_address_street%>\strut\\%
<%billing_address_zipcode%> <%billing_address_city%> \strut\\%
<%billing_address_country%>\strut\\%
<%else%>%
<%name%>\strut\\%
<%if department_1%><%department_1%>\\<%end if%>%
<%if department_2%><%department_2%>\\<%end if%>%
<%cp_title%> <%cp_givenname%> <%cp_name%>\strut\\%
<%street%>\strut\\%
<%zipcode%> <%city%>\strut\\%
<%country%>\strut%
<%end if%>%
}

% Bei Kontaktperson Anrede nach Geschlecht unterscheiden.
Expand Down
26 changes: 18 additions & 8 deletions templates/print/marei/zahlungserinnerung.tex
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,24 @@

\begin{document}

\begin{letter}{
<%name%>\strut\\
<%if department_1%><%department_1%>\\<%end if%>%
<%if department_2%><%department_2%>\\<%end if%>%
<%cp_givenname%> <%cp_name%>\strut\\
<%street%>\strut\\
<%zipcode%> <%city%>\strut\\
<%country%> \strut
\begin{letter}{%
<%if billing_address_id%>%
<%billing_address_name%> \strut\\%
<%if department_1%><%billing_address_department_1%>\\<%end if%>%
<%if department_2%><%billing_address_department_2%>\\<%end if%>%
<%cp_title%> <%cp_givenname%> <%cp_name%>\strut\\%
<%billing_address_street%>\strut\\%
<%billing_address_zipcode%> <%billing_address_city%> \strut\\%
<%billing_address_country%>\strut\\%
<%else%>%
<%name%>\strut\\%
<%if department_1%><%department_1%>\\<%end if%>%
<%if department_2%><%department_2%>\\<%end if%>%
<%cp_title%> <%cp_givenname%> <%cp_name%>\strut\\%
<%street%>\strut\\%
<%zipcode%> <%city%>\strut\\%
<%country%>\strut%
<%end if%>%
}

% Bei Kontaktperson Anrede nach Geschlecht unterscheiden.
Expand Down
26 changes: 18 additions & 8 deletions templates/print/marei/zahlungserinnerung_invoice.tex
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,24 @@
\begin{document}


\begin{letter}{
<%name%>\strut\\
<%if department_1%><%department_1%>\\<%end if%>%
<%if department_2%><%department_2%>\\<%end if%>%
<%cp_givenname%> <%cp_name%>\strut\\
<%street%>\strut\\
<%zipcode%> <%city%>\strut\\
<%country%> \strut
\begin{letter}{%
<%if billing_address_id%>%
<%billing_address_name%> \strut\\%
<%if department_1%><%billing_address_department_1%>\\<%end if%>%
<%if department_2%><%billing_address_department_2%>\\<%end if%>%
<%cp_title%> <%cp_givenname%> <%cp_name%>\strut\\%
<%billing_address_street%>\strut\\%
<%billing_address_zipcode%> <%billing_address_city%> \strut\\%
<%billing_address_country%>\strut\\%
<%else%>%
<%name%>\strut\\%
<%if department_1%><%department_1%>\\<%end if%>%
<%if department_2%><%department_2%>\\<%end if%>%
<%cp_title%> <%cp_givenname%> <%cp_name%>\strut\\%
<%street%>\strut\\%
<%zipcode%> <%city%>\strut\\%
<%country%>\strut%
<%end if%>%
}

% Bei Kontaktperson Anrede nach Geschlecht unterscheiden.
Expand Down

0 comments on commit 510bf23

Please sign in to comment.