Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for billing_address
Browse files Browse the repository at this point in the history
TeXhackse committed Dec 8, 2023
1 parent c0664cc commit a7d9b20
Showing 10 changed files with 174 additions and 77 deletions.
17 changes: 12 additions & 5 deletions templates/print/marei/check.tex
Original file line number Diff line number Diff line change
@@ -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%>}
26 changes: 18 additions & 8 deletions templates/print/marei/credit_note.tex
Original file line number Diff line number Diff line change
@@ -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.
26 changes: 18 additions & 8 deletions templates/print/marei/invoice.tex
Original file line number Diff line number Diff line change
@@ -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.
26 changes: 18 additions & 8 deletions templates/print/marei/proforma.tex
Original file line number Diff line number Diff line change
@@ -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.
26 changes: 18 additions & 8 deletions templates/print/marei/purchase_order.tex
Original file line number Diff line number Diff line change
@@ -61,14 +61,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.
26 changes: 18 additions & 8 deletions templates/print/marei/sales_order.tex
Original file line number Diff line number Diff line change
@@ -70,14 +70,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\\%
<%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.
26 changes: 18 additions & 8 deletions templates/print/marei/sales_quotation.tex
Original file line number Diff line number Diff line change
@@ -61,14 +61,24 @@
<%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.
26 changes: 18 additions & 8 deletions templates/print/marei/statement.tex
Original file line number Diff line number Diff line change
@@ -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.
26 changes: 18 additions & 8 deletions templates/print/marei/zahlungserinnerung.tex
Original file line number Diff line number Diff line change
@@ -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.
26 changes: 18 additions & 8 deletions templates/print/marei/zahlungserinnerung_invoice.tex
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit a7d9b20

Please sign in to comment.