diff options
author | tetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-05-26 23:57:13 +0000 |
---|---|---|
committer | tetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-05-26 23:57:13 +0000 |
commit | b9982a0314b74a8fb342a20568a3e15b90d625bc (patch) | |
tree | 9cfe46d004c4f776babefe0eb7fbadb7435491bc /templates/demo/packing_list.tex | |
parent | 5f4e46ad636f986668a65aeaa7ce7ae314365378 (diff) |
Adding PDF and Postscript support to LedgerSMB::Template
Removing all calls to $form->parse_template
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1241 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'templates/demo/packing_list.tex')
-rw-r--r-- | templates/demo/packing_list.tex | 67 |
1 files changed, 37 insertions, 30 deletions
diff --git a/templates/demo/packing_list.tex b/templates/demo/packing_list.tex index 71d90b53..a1b638ec 100644 --- a/templates/demo/packing_list.tex +++ b/templates/demo/packing_list.tex @@ -1,5 +1,5 @@ \documentclass{scrartcl} -\usepackage[latin1]{inputenc} +\usepackage[utf8]{inputenc} \usepackage{tabularx} \usepackage[letterpaper,top=2cm,bottom=1.5cm,left=1.1cm,right=1.5cm]{geometry} \usepackage{graphicx} @@ -23,18 +23,19 @@ returned. Returns must be shipped prepaid and properly insured. } } -<?lsmb include letterhead.tex ?> +<?lsmb INCLUDE letterhead.tex ?> -<?lsmb pagebreak 65 27 37 ?> -\end{tabularx} - -\newpage - -\markboth{<?lsmb company ?>\hfill <?lsmb ordnumber ?>}{<?lsmb company ?>\hfill <?lsmb ordnumber ?>} - -\begin{tabularx}{\textwidth}{@{}rlXllrrl@{}} - \textbf{Item} & \textbf{Number} & \textbf{Description} & \textbf{Serial Number} & & \textbf{Qty} & \textbf{Ship} & \\ -<?lsmb end pagebreak ?> +% Breaking old pagebreak directive +%<?xlsmb pagebreak 65 27 37 ?> +%\end{tabularx} +% +%\newpage +% +%\markboth{<?xlsmb company ?>\hfill <?xlsmb ordnumber ?>}{<?xlsmb company ?>\hfill <?xlsmb ordnumber ?>} +% +%\begin{tabularx}{\textwidth}{@{}rlXllrrl@{}} +% \textbf{Item} & \textbf{Number} & \textbf{Description} & \textbf{Serial Number} & & \textbf{Qty} & \textbf{Ship} & \\ +%<?xlsmb end pagebreak ?> \vspace*{0.5cm} @@ -53,9 +54,9 @@ returned. Returns must be shipped prepaid and properly insured. <?lsmb shiptoaddress2 ?> <?lsmb shiptocity ?> -<?lsmb if shiptostate ?> +<?lsmb IF shiptostate ?> \hspace{-0.1cm}, <?lsmb shiptostate ?> -<?lsmb end shiptostate ?> +<?lsmb END ?> <?lsmb shiptozipcode ?> <?lsmb shiptocountry ?> @@ -63,13 +64,13 @@ returned. Returns must be shipped prepaid and properly insured. \parbox[t]{.5\textwidth}{ <?lsmb shiptocontact ?> - <?lsmb if shiptophone ?> + <?lsmb IF shiptophone ?> Tel: <?lsmb shiptophone ?> - <?lsmb end shiptophone ?> + <?lsmb END ?> - <?lsmb if shiptofax ?> + <?lsmb IF shiptofax ?> Fax: <?lsmb shiptofax ?> - <?lsmb end shiptofax ?> + <?lsmb END ?> <?lsmb shiptoemail ?> } @@ -84,23 +85,22 @@ returned. Returns must be shipped prepaid and properly insured. \begin{tabularx}{\textwidth}{*{7}{|X}|} \hline \textbf{Invoice \#} & \textbf{Order \#} & \textbf{Date} & \textbf{Contact} - <?lsmb if warehouse ?> + <?lsmb IF warehouse ?> & \textbf{Warehouse} - <?lsmb end warehouse ?> + <?lsmb END ?> & \textbf{Shipping Point} & \textbf{Ship via} \\ [0.5em] \hline <?lsmb invnumber ?> & <?lsmb ordnumber ?> - <?lsmb if shippingdate ?> + <?lsmb IF shippingdate ?> & <?lsmb shippingdate ?> - <?lsmb end shippingdate ?> - <?lsmb if not shippingdate ?> + <?lsmb ELSE ?> & <?lsmb transdate ?> - <?lsmb end shippingdate ?> + <?lsmb END shippingdate ?> & <?lsmb employee ?> - <?lsmb if warehouse ?> + <?lsmb IF warehouse ?> & <?lsmb warehouse ?> - <?lsmb end warehouse ?> + <?lsmb END ?> & <?lsmb shippingpoint ?> & <?lsmb shipvia ?> \\ \hline \end{tabularx} @@ -110,10 +110,17 @@ returned. Returns must be shipped prepaid and properly insured. \begin{tabularx}{\textwidth}{@{}rlXllrrl@{}} \textbf{Item} & \textbf{Number} & \textbf{Description} & \textbf{Serial Number} & & \textbf{Qty} & \textbf{Ship} & \\ -<?lsmb foreach number ?> - <?lsmb runningnumber ?> & <?lsmb number ?> & <?lsmb description ?> & <?lsmb serialnumber ?> & - <?lsmb deliverydate ?> & <?lsmb qty ?> & <?lsmb ship ?> & <?lsmb unit ?> \\ -<?lsmb end number ?> +<?lsmb FOREACH number ?> +<?lsmb lc = loop.count - 1 ?> + <?lsmb runningnumber.${lc} ?> & + <?lsmb number.${lc} ?> & + <?lsmb description.${lc} ?> & + <?lsmb serialnumber.${lc} ?> & + <?lsmb deliverydate.${lc} ?> & + <?lsmb qty.${lc} ?> & + <?lsmb ship.${lc} ?> & + <?lsmb unit.${lc} ?> \\ +<?lsmb END ?> \end{tabularx} |