diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2008-07-07 17:37:20 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2008-07-07 17:37:20 +0000 |
commit | 484f4f00ff319bf97c5ca911313738aa05a63a2c (patch) | |
tree | 206cc4592d59f5b1e686295cccfef25707544b4d /templates | |
parent | 4ffd768dbd254da2d1abeba77148ad1de648d117 (diff) |
Correcting all check printing issues on my secondary testing instance
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@2190 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'templates')
-rw-r--r-- | templates/Default-check_base.tex | 64 | ||||
-rw-r--r-- | templates/Default-check_multiple.tex | 31 | ||||
-rw-r--r-- | templates/demo/check.tex | 71 | ||||
-rw-r--r-- | templates/demo/check_base.tex | 65 | ||||
-rw-r--r-- | templates/demo/check_multiple.tex | 34 |
5 files changed, 200 insertions, 65 deletions
diff --git a/templates/Default-check_base.tex b/templates/Default-check_base.tex new file mode 100644 index 00000000..8aba93a0 --- /dev/null +++ b/templates/Default-check_base.tex @@ -0,0 +1,64 @@ +<?lsmb BLOCK check_single ?> +\parbox[t]{12cm}{ + <?lsmb company ?> + + <?lsmb address ?>} +\hfill +\parbox[t]{6cm}{\hfill <?lsmb source ?>} + +\vspace*{0.6cm} + +<?lsmb text_amount ?> \dotfill <?lsmb decimal ?>/100 \makebox[0.5cm]{\hfill} + +\vspace{0.5cm} + +\hfill <?lsmb datepaid ?> \makebox[2cm]{\hfill} <?lsmb amount ?> + +% different date format for datepaid +% <?lsmb DD ?><?lsmb MM ?><?lsmb YYYY ?> + +\vspace{0.5cm} + +<?lsmb name ?> + +<?lsmb address1 ?> + +<?lsmb address2 ?> + +<?lsmb city ?> +<?lsmb if state ?> +\hspace{-0.1cm}, <?lsmb state ?> +<?lsmb end state ?> +<?lsmb zipcode ?> + +<?lsmb country ?> + +\vspace{1.8cm} + +<?lsmb memo ?> + +\vspace{0.8cm} + +<?lsmb company ?> + +\vspace{0.5cm} + +<?lsmb name ?> \hfill <?lsmb datepaid ?> \hfill <?lsmb source ?> + +\vspace{0.5cm} +\begin{tabularx}{\textwidth}{lXrr@{}} +\textbf{Invoice \#} & \textbf{Invoice Date} + & \textbf{Amount Due} & \textbf{Applied} \\ +<?lsmb FOR inv = invoices ?> +<?lsmb inv.invnumber ?> & <?lsmb inv.invdate ?> \dotfill + & <?lsmb inv.due ?> & <?lsmb inv.paid ?> \\ +<?lsmb end # FOREACH inv ?> +\end{tabularx} + +\vspace{1cm} + +<?lsmb memo ?> + +\vfill +<?lsmb message ?> +<?lsmb END # BLOCK ?> diff --git a/templates/Default-check_multiple.tex b/templates/Default-check_multiple.tex new file mode 100644 index 00000000..48fad192 --- /dev/null +++ b/templates/Default-check_multiple.tex @@ -0,0 +1,31 @@ +\documentclass{scrartcl} +\usepackage[latin1]{inputenc} +\usepackage{tabularx} +\usepackage[letterpaper,top=2cm,bottom=1.5cm,left=1.1cm,right=1.5cm]{geometry} +\usepackage{graphicx} + +<?lsmb INCLUDE check_base.tex ?> + +\begin{document} + +\pagestyle{myheadings} +\thispagestyle{empty} + +\fontfamily{cmss}\fontsize{9pt}{9pt}\selectfont +<?lsmb FOR check = checks_data ?> +<?lsmb INCLUDE check_single + source = check.source + text_amount = check.text_amount + amount = check.amount + name = check.name + address1 = check.address1 + address2 = check.address2 + city = check.city + state = check.state + zipcode = check.zipcode + memo = check.memo + invoices = check.invoices +?> +\endpage +<?lsmb END # FOR check ?> +\end{document} diff --git a/templates/demo/check.tex b/templates/demo/check.tex index 34da77c1..33bcb515 100644 --- a/templates/demo/check.tex +++ b/templates/demo/check.tex @@ -1,10 +1,12 @@ -<?lsmb FILTER latex -?> +<?lsmb FILTER latex ?> \documentclass{scrartcl} -\usepackage[utf8]{inputenc} +\usepackage[latin1]{inputenc} \usepackage{tabularx} \usepackage[letterpaper,top=2cm,bottom=1.5cm,left=1.1cm,right=1.5cm]{geometry} \usepackage{graphicx} +<?lsmb REQUIRE check_base.tex ?> + \begin{document} \pagestyle{myheadings} @@ -12,68 +14,7 @@ \fontfamily{cmss}\fontsize{9pt}{9pt}\selectfont -\parbox[t]{12cm}{ - <?lsmb company ?> - - <?lsmb address ?>} -\hfill -\parbox[t]{6cm}{\hfill <?lsmb source ?>} - -\vspace*{0.6cm} - -<?lsmb text_amount ?> \dotfill <?lsmb decimal ?>/100 \makebox[0.5cm]{\hfill} - -\vspace{0.5cm} - -\hfill <?lsmb datepaid ?> \makebox[2cm]{\hfill} <?lsmb amount ?> - -% different date format for datepaid -% <?lsmb DD ?><?lsmb MM ?><?lsmb YYYY ?> - -\vspace{0.5cm} - -<?lsmb name ?> - -<?lsmb address1 ?> - -<?lsmb address2 ?> - -<?lsmb city ?> -<?lsmb IF state ?> -\hspace{-0.1cm}, <?lsmb state ?> -<?lsmb END ?> -<?lsmb zipcode ?> - -<?lsmb country ?> - -\vspace{1.8cm} - -<?lsmb memo ?> - -\vspace{0.8cm} - -<?lsmb company ?> - -\vspace{0.5cm} - -<?lsmb name ?> \hfill <?lsmb datepaid ?> \hfill <?lsmb source ?> - -\vspace{0.5cm} -\begin{tabularx}{\textwidth}{lXrr@{}} -\textbf{Invoice \#} & \textbf{Invoice Date} - & \textbf{Amount Due} & \textbf{Applied} \\ -<?lsmb FOREACH invnumber ?> -<?lsmb lc = loop.count - 1 ?> -<?lsmb invnumber.${lc} ?> & <?lsmb invdate.${lc} ?> \dotfill - & <?lsmb due.${lc} ?> & <?lsmb paid.${lc} ?> \\ -<?lsmb END ?> -\end{tabularx} - -\vspace{1cm} - -<?lsmb memo ?> - -\vfill +<?lsmb PROCESS check_single ?> \end{document} -<?lsmb END ?> +<?lsmb END # FILTER latex ?> diff --git a/templates/demo/check_base.tex b/templates/demo/check_base.tex new file mode 100644 index 00000000..9493c7ee --- /dev/null +++ b/templates/demo/check_base.tex @@ -0,0 +1,65 @@ +<?lsmb BLOCK check_single ?> +\parbox[t]{12cm}{ + <?lsmb company ?> + + <?lsmb address ?>} +\hfill +\parbox[t]{6cm}{\hfill <?lsmb source ?>} + +\vspace*{0.6cm} + +<?lsmb text_amount ?> \dotfill <?lsmb decimal ?>/100 \makebox[0.5cm]{\hfill} + +\vspace{0.5cm} + +\hfill <?lsmb datepaid ?> \makebox[2cm]{\hfill} <?lsmb amount ?> + +% different date format for datepaid +% <?lsmb DD ?><?lsmb MM ?><?lsmb YYYY ?> + +\vspace{0.5cm} + +<?lsmb legal_name ?> + +<?lsmb street1 ?> + +<?lsmb street2 ?> + +<?lsmb city ?> +<?lsmb IF state ?> +\hspace{-0.1cm}, <?lsmb state ?> +<?lsmb END # state ?> + +<?lsmb mail_code ?> + +<?lsmb country ?> + +\vspace{1.8cm} + +<?lsmb memo ?> + +\vspace{0.8cm} + +<?lsmb company ?> + +\vspace{0.5cm} + +<?lsmb name ?> \hfill <?lsmb datepaid ?> \hfill <?lsmb source ?> + +\vspace{0.5cm} +\begin{tabularx}{\textwidth}{lXrr@{}} +\textbf{Invoice \#} & \textbf{Invoice Date} + & \textbf{Amount Due} & \textbf{Applied} \\ +<?lsmb FOR inv = invoices ?> +<?lsmb inv.invnumber ?> & <?lsmb inv.invdate ?> \dotfill + & <?lsmb inv.due ?> & <?lsmb inv.paid ?> \\ +<?lsmb END # FOREACH inv ?> +\end{tabularx} + +\vspace{1cm} + +<?lsmb memo ?> + +\vfill +<?lsmb message ?> +<?lsmb END # BLOCK ?> diff --git a/templates/demo/check_multiple.tex b/templates/demo/check_multiple.tex new file mode 100644 index 00000000..5dced55b --- /dev/null +++ b/templates/demo/check_multiple.tex @@ -0,0 +1,34 @@ +<?lsmb FILTER latex ?> +\documentclass{scrartcl} +\usepackage[latin1]{inputenc} +\usepackage{tabularx} +\usepackage[letterpaper,top=2cm,bottom=1.5cm,left=1.1cm,right=1.5cm]{geometry} +\usepackage{graphicx} + +<?lsmb PROCESS check_base.tex ?> + +\begin{document} + +\pagestyle{myheadings} +\thispagestyle{empty} + +\fontfamily{cmss}\fontsize{9pt}{9pt}\selectfont +<?lsmb FOR check = checks ?> +<?lsmb INCLUDE check_single + source = check.source + text_amount = check.text_amount + decimal = check.decimal + amount = check.amount + legal_name = check.legal_name + street1 = check.street1 + street2 = check.street2 + city = check.city + state = check.state + mail_code = check.mail_code + memo = check.memo + invoices = check.invoices +?> +\clearpage +<?lsmb END # FOR check ?> +\end{document} +<?lsmb END # FILTER latex ?> |