From b9982a0314b74a8fb342a20568a3e15b90d625bc Mon Sep 17 00:00:00 2001 From: tetragon Date: Sat, 26 May 2007 23:57:13 +0000 Subject: 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 --- templates/demo/ap_transaction.tex | 69 ++++++++++--------- templates/demo/ar_transaction.tex | 74 +++++++++++--------- templates/demo/bin_list.tex | 65 ++++++++++-------- templates/demo/check.tex | 15 +++-- templates/demo/invoice.tex | 127 +++++++++++++++++++---------------- templates/demo/packing_list.tex | 67 +++++++++--------- templates/demo/pick_list.tex | 60 +++++++++-------- templates/demo/purchase_order.tex | 99 ++++++++++++++------------- templates/demo/receipt.tex | 15 +++-- templates/demo/request_quotation.tex | 89 ++++++++++++------------ templates/demo/sales_order.tex | 107 +++++++++++++++-------------- templates/demo/sales_quotation.tex | 88 +++++++++++++----------- templates/demo/statement.tex | 31 +++++---- templates/demo/timecard.tex | 4 +- templates/demo/work_order.tex | 72 +++++++++++--------- 15 files changed, 536 insertions(+), 446 deletions(-) (limited to 'templates/demo') diff --git a/templates/demo/ap_transaction.tex b/templates/demo/ap_transaction.tex index 7df57017..c8edaf4c 100644 --- a/templates/demo/ap_transaction.tex +++ b/templates/demo/ap_transaction.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} @@ -12,7 +12,7 @@ \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont - + \centerline{\textbf{A P} \hspace{0.3cm} \textbf{T R A N S A C T I O N}} @@ -26,58 +26,64 @@ - + \hspace{-0.1cm}, - + \vspace{0.3cm} - + \vspace{0.2cm} - + - + Tel: - + - + Fax: - + - + Tax Number: - + } \hfill \begin{tabular}[t]{ll} \textbf{Invoice \#} & \\ \textbf{Date} & \\ \textbf{Due} & \\ - + \textbf{PO \#} & \\ - - + + \textbf{Order \#} & \\ - + \textbf{Employee} & \\ \end{tabular} \vspace{1cm} \begin{tabularx}{\textwidth}[t]{@{}llrX@{\hspace{1cm}}l@{}} - - & & & & \\ - + + + & + & + & + & + \\ + \multicolumn{2}{r}{\textbf{Subtotal}} & & \\ - - \multicolumn{2}{r}{\textbf{ @ \%}} & & \\ - + + + \multicolumn{2}{r}{\textbf{ @ \%}} & & \\ + \multicolumn{2}{r}{\textbf{Total}} & & \\ @@ -87,25 +93,26 @@ Tax Number: ***** /100 - + \vspace{0.3cm} - + \vspace{0.3cm} - + \begin{tabular}{@{}llllr@{}} \multicolumn{5}{c}{\textbf{Payments}} \\ \hline \textbf{Date} & & \textbf{Source} & \textbf{Memo} & \textbf{Amount} \\ - - - & & & & \\ - - + + + + & & & & \\ + + \end{tabular} - + \end{document} diff --git a/templates/demo/ar_transaction.tex b/templates/demo/ar_transaction.tex index 95f9160d..19834aaf 100644 --- a/templates/demo/ar_transaction.tex +++ b/templates/demo/ar_transaction.tex @@ -1,5 +1,5 @@ \documentclass{scrartcl} -\usepackage[latin1]{inputenc} +\usepackage[utf8]{inputenc} \usepackage{tabularx} \usepackage[top=2cm,bottom=1.5cm,left=2cm,right=1cm]{geometry} \usepackage{graphicx} @@ -40,60 +40,66 @@ - + , - + \vspace{0.3cm} - + - + \vspace{0.2cm} - + Tel: - + - + Fax: - + - + Tax Number: - + } \hfill \begin{tabular}[t]{ll} \textbf{Invoice \#} & \\ \textbf{Date} & \\ \textbf{Due} & \\ - + \textbf{PO \#} & \\ - - + + \textbf{Order \#} & \\ - + \textbf{Employee} & \\ \end{tabular} \vspace{1cm} \begin{tabularx}{\textwidth}[t]{@{}llrX@{\hspace{1cm}}l@{}} - - & & & & \\ - + + + & + & + & + & + \\ + \multicolumn{2}{r}{\textbf{Subtotal}} & & \\ - - \multicolumn{2}{r}{\textbf{ @ \%}} & & \\ - + + + \multicolumn{2}{r}{\textbf{ @ \%}} & & \\ + \multicolumn{2}{r}{\textbf{Total}} & & \\ @@ -103,31 +109,33 @@ Tax Number: ***** /100 - + \vspace{0.3cm} - + \vspace{0.3cm} - + \begin{tabular}{@{}lllr@{}} \multicolumn{5}{c}{\textbf{Payments}} \\ \hline \textbf{Date} & & \textbf{Source} & \textbf{Amount} \\ - - - & & & \\ - - + + + + & & & \\ + + \end{tabular} - + \vspace{0.5cm} - -\textbf{\scriptsize Registration } \\ - + + +\textbf{\scriptsize Registration } \\ + \end{document} diff --git a/templates/demo/bin_list.tex b/templates/demo/bin_list.tex index 88d4b3ce..8b96825c 100644 --- a/templates/demo/bin_list.tex +++ b/templates/demo/bin_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} @@ -11,19 +11,20 @@ \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont - + - - -\end{tabularx} - -\newpage - -\markboth{\hfill }{\hfill } -\begin{tabularx}{\textwidth}{@{}rlXllrrll@{}} - \textbf{Item} & \textbf{Number} & \textbf{Description} & \textbf{Serial Number} & & \textbf{Qty} & \textbf{Recd} & & \textbf{Bin} \\ - +% Breaking old pagebreak directives +% +%\end{tabularx} +% +%\newpage +% +%\markboth{\hfill }{\hfill } +% +%\begin{tabularx}{\textwidth}{@{}rlXllrrll@{}} +% \textbf{Item} & \textbf{Number} & \textbf{Description} & \textbf{Serial Number} & & \textbf{Qty} & \textbf{Recd} & & \textbf{Bin} \\ +% \vspace*{0.5cm} @@ -39,9 +40,9 @@ - + \hspace{-0.1cm}, - + @@ -57,9 +58,9 @@ - + \hspace{-0.1cm}, - + @@ -75,23 +76,23 @@ \begin{tabularx}{\textwidth}{*{6}{|X}|} \hline \textbf{Order \#} & \textbf{Date} & \textbf{Contact} - + & \textbf{Warehouse} - + & \textbf{Shipping Point} & \textbf{Ship via} \\ [0.5em] \hline - + & - - + + & - + & - + & - + & & \\ \hline \end{tabularx} @@ -101,10 +102,18 @@ \begin{tabularx}{\textwidth}{@{}rlXllrrll@{}} \textbf{Item} & \textbf{Number} & \textbf{Description} & \textbf{Serial Number} & & \textbf{Qty} & \textbf{Recd} & & \textbf{Bin} \\ - - & & & & - & & & & \\ - + + + & + & + & + & + & + & + & + & + \\ + \end{tabularx} diff --git a/templates/demo/check.tex b/templates/demo/check.tex index a0298580..b5c8a31c 100644 --- a/templates/demo/check.tex +++ b/templates/demo/check.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} @@ -38,9 +38,9 @@ - + \hspace{-0.1cm}, - + @@ -61,10 +61,11 @@ \begin{tabularx}{\textwidth}{lXrr@{}} \textbf{Invoice \#} & \textbf{Invoice Date} & \textbf{Amount Due} & \textbf{Applied} \\ - - & \dotfill - & & \\ - + + + & \dotfill + & & \\ + \end{tabularx} \vspace{1cm} diff --git a/templates/demo/invoice.tex b/templates/demo/invoice.tex index a34120fb..36af8d88 100644 --- a/templates/demo/invoice.tex +++ b/templates/demo/invoice.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} @@ -22,29 +22,30 @@ A return authorization must be obtained from before goods are } } - - - -\end{tabularx} - - \rule{\textwidth}{2pt} - - \vspace{0.2cm} - - \hfill - \begin{tabularx}{\textwidth}{Xr@{\hspace{1cm}}r@{}} - & Subtotal & \\ - \end{tabularx} - -\newpage - -\markboth{\hfill }{\hfill } - -\begin{tabularx}{\textwidth}{@{}rlXlrlrrr@{}} - \textbf{Pos} & \textbf{Number} & \textbf{Description} & & \textbf{Qt'y} & - \textbf{Unit} & \textbf{Price} & \textbf{Disc \%} & \textbf{Amount} \\ [0.5em] - & carried forward from page & & & & & & & \\ [0.5em] - + + +% Disable old pagebreak handling +% +%\end{tabularx} +% +% \rule{\textwidth}{2pt} +% +% \vspace{0.2cm} +% +% \hfill +% \begin{tabularx}{\textwidth}{Xr@{\hspace{1cm}}r@{}} +% & Subtotal & \\ +% \end{tabularx} +% +%\newpage +% +%\markboth{\hfill }{\hfill } +% +%\begin{tabularx}{\textwidth}{@{}rlXlrlrrr@{}} +% \textbf{Pos} & \textbf{Number} & \textbf{Description} & & \textbf{Qt'y} & +% \textbf{Unit} & \textbf{Price} & \textbf{Disc \%} & \textbf{Amount} \\ [0.5em] +% & carried forward from page & & & & & & & \\ [0.5em] +% \vspace*{0.5cm} @@ -60,27 +61,27 @@ A return authorization must be obtained from before goods are - + \hspace{-0.1cm}, - + \vspace{0.3cm} - + \vspace{0.2cm} - + - + Tel: - + - + Fax: - + } @@ -95,27 +96,27 @@ Fax: - + \hspace{-0.1cm}, - + \vspace{0.3cm} - + \vspace{0.2cm} - + - + Tel: - + - + Fax: - + } @@ -142,10 +143,18 @@ Fax: \begin{tabularx}{\textwidth}{@{}rlXlrlrrr@{}} \textbf{Pos} & \textbf{Number} & \textbf{Description} & & \textbf{Qt'y} & \textbf{Unit} & \textbf{Price} & \textbf{Disc \%} & \textbf{Amount} \\ [0.5em] - - & & & & - & & & & \\ - + + + & + & + & + & + & + & + & + & + \\ + \end{tabularx} @@ -157,16 +166,17 @@ Fax: \hfill \begin{tabularx}{7cm}{Xr@{\hspace{1cm}}r@{}} & Subtotal & \\ - - & on & \\ - - + + + & on & \\ + + & Paid & - \\ - + \hline - + & Balance Due & - + \end{tabularx} \vspace{0.3cm} @@ -182,18 +192,19 @@ All prices in \textbf{}. \vfill - + \begin{tabularx}{10cm}{@{}lXlr@{}} \textbf{Payments} & & & \\ \hline \textbf{Date} & & \textbf{Source} & \textbf{Amount} \\ - - - & & & \\ - - + + + + & & & \\ + + \end{tabularx} - + \vspace{1cm} 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. } } - + - -\end{tabularx} - -\newpage - -\markboth{\hfill }{\hfill } - -\begin{tabularx}{\textwidth}{@{}rlXllrrl@{}} - \textbf{Item} & \textbf{Number} & \textbf{Description} & \textbf{Serial Number} & & \textbf{Qty} & \textbf{Ship} & \\ - +% Breaking old pagebreak directive +% +%\end{tabularx} +% +%\newpage +% +%\markboth{\hfill }{\hfill } +% +%\begin{tabularx}{\textwidth}{@{}rlXllrrl@{}} +% \textbf{Item} & \textbf{Number} & \textbf{Description} & \textbf{Serial Number} & & \textbf{Qty} & \textbf{Ship} & \\ +% \vspace*{0.5cm} @@ -53,9 +54,9 @@ returned. Returns must be shipped prepaid and properly insured. - + \hspace{-0.1cm}, - + @@ -63,13 +64,13 @@ returned. Returns must be shipped prepaid and properly insured. \parbox[t]{.5\textwidth}{ - + Tel: - + - + Fax: - + } @@ -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} - + & \textbf{Warehouse} - + & \textbf{Shipping Point} & \textbf{Ship via} \\ [0.5em] \hline & - + & - - + & - + & - + & - + & & \\ \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} & \\ - - & & & & - & & & \\ - + + + & + & + & + & + & + & + & + \\ + \end{tabularx} diff --git a/templates/demo/pick_list.tex b/templates/demo/pick_list.tex index 1b88041f..cc7f67fd 100644 --- a/templates/demo/pick_list.tex +++ b/templates/demo/pick_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} @@ -11,21 +11,22 @@ \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont - + - - -\end{tabularx} - -\newpage - -\markboth{\hfill }{\hfill } - -\begin{tabularx}{\textwidth}{@{}rlXrcll@{}} - \textbf{Item} & \textbf{Number} & \textbf{Description} & - \textbf{Qty} & \textbf{Ship} & & \textbf{Bin} \\ - +% Breaking old pagebreak directive +% +%\end{tabularx} +% +%\newpage +% +%\markboth{\hfill }{\hfill } +% +%\begin{tabularx}{\textwidth}{@{}rlXrcll@{}} +% \textbf{Item} & \textbf{Number} & \textbf{Description} & +% \textbf{Qty} & \textbf{Ship} & & \textbf{Bin} \\ +% +% \vspace*{0.5cm} @@ -44,9 +45,9 @@ - + \hspace{-0.1cm}, - + @@ -54,13 +55,13 @@ \parbox[t]{.5\textwidth}{ - + Tel: - + - + Fax: - + } @@ -78,12 +79,11 @@ & \textbf{Warehouse} & \textbf{Shipping Point} & \textbf{Ship via} \\ [0.5em] \hline & - + & - - + & - + & & & & \\ \hline \end{tabularx} @@ -93,10 +93,14 @@ \begin{tabularx}{\textwidth}{@{}rlXrcll@{}} \textbf{Item} & \textbf{Number} & \textbf{Description} & \textbf{Qty} & \textbf{Ship} & & \textbf{Bin} \\ - - & & & - & [\hspace{1cm}] & & \\ - + + + & + & + & + & [\hspace{1cm}] & + & \\ + \end{tabularx} diff --git a/templates/demo/purchase_order.tex b/templates/demo/purchase_order.tex index 59511743..c60073a6 100644 --- a/templates/demo/purchase_order.tex +++ b/templates/demo/purchase_order.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} @@ -12,28 +12,29 @@ \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont - - - - -\end{tabularx} - - \rule{\textwidth}{2pt} - - \hfill - \begin{tabularx}{7cm}{Xr@{\hspace{1cm}r@{}} - & Subtotal & \\ - \end{tabularx} - -\newpage - -\markboth{\hfill }{\hfill } - -\begin{tabularx}{\textwidth}{@{}lXrlrr@{}} - \textbf{Number} & \textbf{Description} & \textbf{Qt'y} & - \textbf{Unit} & \textbf{Price} & \textbf{Amount} \\ - & carried forward from & & & & \\ - + + + +% Breaking old pagebreak directive +% +%\end{tabularx} +% +% \rule{\textwidth}{2pt} +% +% \hfill +% \begin{tabularx}{7cm}{Xr@{\hspace{1cm}r@{}} +% & Subtotal & \\ +% \end{tabularx} +% +%\newpage +% +%\markboth{\hfill }{\hfill } +% +%\begin{tabularx}{\textwidth}{@{}lXrlrr@{}} +% \textbf{Number} & \textbf{Description} & \textbf{Qt'y} & +% \textbf{Unit} & \textbf{Price} & \textbf{Amount} \\ +% & carried forward from & & & & \\ +% \vspace*{0.5cm} @@ -49,27 +50,27 @@ - + \hspace{-0.1cm}, - + \vspace{0.3cm} - + Attn: \vspace{0.2cm} - + - + Tel: - + - + Fax: - + } @@ -84,27 +85,27 @@ Fax: - + \hspace{-0.1cm}, - + \vspace{0.3cm} - + Attn: \vspace{0.2cm} - + - + Tel: - + - + Fax: - + } @@ -128,10 +129,15 @@ Fax: \begin{tabularx}{\textwidth}{@{}lXrlrr@{}} \textbf{Number} & \textbf{Description} & \textbf{Qt'y} & \textbf{Unit} & \textbf{Price} & \textbf{Amount} \\ - - & & & - & & \\ - + + + & + & + & + & + & + \\ + \end{tabularx} @@ -143,9 +149,10 @@ Fax: \hfill \begin{tabularx}{7cm}{Xr@{\hspace{1cm}}r@{}} & Subtotal & \\ - - & on & \\ - + + + & on & \\ + \hline & Total & \\ \end{tabularx} diff --git a/templates/demo/receipt.tex b/templates/demo/receipt.tex index 7bd4decd..16e88ed0 100644 --- a/templates/demo/receipt.tex +++ b/templates/demo/receipt.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} @@ -38,9 +38,9 @@ - + \hspace{-0.1cm}, - + @@ -61,10 +61,11 @@ \begin{tabularx}{\textwidth}{lXrr@{}} \textbf{Invoice No.} & \textbf{Invoice Date} & \textbf{Due} & \textbf{Applied} \\ - - & \dotfill - & & \\ - + + + & \dotfill + & & \\ + \end{tabularx} \vspace{1cm} diff --git a/templates/demo/request_quotation.tex b/templates/demo/request_quotation.tex index f866911e..feccc631 100644 --- a/templates/demo/request_quotation.tex +++ b/templates/demo/request_quotation.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} @@ -11,28 +11,29 @@ \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont - - - - -\end{tabularx} - - \rule{\textwidth}{2pt} - - \hfill - \begin{tabularx}{7cm}{Xr@{\hspace{1cm}}r@{}} - & \textbf{Subtotal} & \textbf{} \\ - \end{tabularx} - -\newpage - -\markboth{\hfill }{\hfill } - -\begin{tabularx}{\textwidth}{@{}lXrlrr@{}} - \textbf{Number} & \textbf{Description} & \textbf{Qt'y} & - \textbf{Unit} & \textbf{Price} & \textbf{Extended} \\ - & carried forward from & & & & \\ - + + + +% Breaking old pagebreak directive +% +%\end{tabularx} +% +% \rule{\textwidth}{2pt} +% +% \hfill +% \begin{tabularx}{7cm}{Xr@{\hspace{1cm}}r@{}} +% & \textbf{Subtotal} & \textbf{} \\ +% \end{tabularx} +% +%\newpage +% +%\markboth{\hfill }{\hfill } +% +%\begin{tabularx}{\textwidth}{@{}lXrlrr@{}} +% \textbf{Number} & \textbf{Description} & \textbf{Qt'y} & +% \textbf{Unit} & \textbf{Price} & \textbf{Extended} \\ +% & carried forward from & & & & \\ +% \vspace*{0.5cm} @@ -48,27 +49,27 @@ - + \hspace{-0.1cm}, - + \vspace{0.3cm} - + \vspace{0.2cm} - + - + Tel: - + - + Fax: - + } @@ -83,27 +84,27 @@ Fax: - + \hspace{-0.1cm}, - + \vspace{0.3cm} - + \vspace{0.2cm} - + - + Tel: - + - + Fax: - + } @@ -132,9 +133,13 @@ Please provide price and delivery time for the following items: \begin{tabularx}{\textwidth}{@{}lXrllrr@{}} \textbf{Number} & \textbf{Description} & \textbf{Qt'y} & & \textbf{Delivery} & \textbf{Unit Price} & \textbf{Extended} \\ - - & & & \\ - + + + & + & + & + \\ + \end{tabularx} diff --git a/templates/demo/sales_order.tex b/templates/demo/sales_order.tex index 7bcb0dce..2d382cb2 100644 --- a/templates/demo/sales_order.tex +++ b/templates/demo/sales_order.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} @@ -11,29 +11,30 @@ \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont - - - - -\end{tabularx} - - \rule{\textwidth}{2pt} - - \hfill - \begin{tabularx}{7cm}{Xr@{\hspace{1cm}}r@{}} - & \textbf{Subtotal} & \textbf{} \\ - \end{tabularx} - -\newpage - -\markboth{\hfill }{\hfill } - - -\begin{tabularx}{\textwidth}{@{}rlXrlrrr@{}} - \textbf{Item} & \textbf{Number} & \textbf{Description} & \textbf{Qt'y} & - \textbf{Unit} & \textbf{Price} & \textbf{Disc \%} & \textbf{Amount} \\ - & carried forward from & & & & & \\ - + + + +% Breaking old pagebreak directive +% +%\end{tabularx} +% +% \rule{\textwidth}{2pt} +% +% \hfill +% \begin{tabularx}{7cm}{Xr@{\hspace{1cm}}r@{}} +% & \textbf{Subtotal} & \textbf{} \\ +% \end{tabularx} +% +%\newpage +% +%\markboth{\hfill }{\hfill } +% +% +%\begin{tabularx}{\textwidth}{@{}rlXrlrrr@{}} +% \textbf{Item} & \textbf{Number} & \textbf{Description} & \textbf{Qt'y} & +% \textbf{Unit} & \textbf{Price} & \textbf{Disc \%} & \textbf{Amount} \\ +% & carried forward from & & & & & \\ +% \vspace*{0.5cm} @@ -49,27 +50,27 @@ - + \hspace{-0.1cm}, - + \vspace{0.3cm} - + \vspace{0.2cm} - + - + Tel: - + - + Fax: - + } @@ -84,27 +85,27 @@ Fax: - + \hspace{-0.1cm}, - + \vspace{0.3cm} - + \vspace{0.2cm} - + - + Tel: - + - + Fax: - + } @@ -129,10 +130,17 @@ Fax: \begin{tabularx}{\textwidth}{@{}rlXrlrrr@{}} \textbf{Item} & \textbf{Number} & \textbf{Description} & \textbf{Qt'y} & \textbf{Unit} & \textbf{Price} & \textbf{Disc \%} & \textbf{Amount} \\ - - & & & & - & & & \\ - + + + & + & + & + & + & + & + & + \\ + \end{tabularx} @@ -144,9 +152,10 @@ Fax: \hfill \begin{tabularx}{7cm}{Xr@{\hspace{1cm}}r@{}} & Subtotal & \\ - - & on & \\ - + + + & on & \\ + \hline & Total & \\ \end{tabularx} @@ -157,9 +166,9 @@ Fax: \hfill All prices in \textbf{}. - + Terms: days - + \vspace{12pt} diff --git a/templates/demo/sales_quotation.tex b/templates/demo/sales_quotation.tex index b80ffacc..43a9fdfc 100644 --- a/templates/demo/sales_quotation.tex +++ b/templates/demo/sales_quotation.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} @@ -20,28 +20,29 @@ Special order items are subject to a 10\% cancellation fee. } } - - - - -\end{tabularx} - - \rule{\textwidth}{2pt} - - \hfill - \begin{tabularx}{7cm}{Xr@{\hspace{1cm}}r@{}} - & \textbf{Subtotal} & \textbf{} \\ - \end{tabularx} - -\newpage - -\markboth{\hfill }{\hfill } - -\begin{tabularx}{\textwidth}{@{}lXrlrrr@{}} - \textbf{Number} & \textbf{Description} & \textbf{Qt'y} & - \textbf{Unit} & \textbf{Price} & \textbf{Disc \%} & \textbf{Amount} \\ - & carried forward from & & & & & \\ - + + + +% Breaking old pagebreak directive +% +%\end{tabularx} +% +% \rule{\textwidth}{2pt} +% +% \hfill +% \begin{tabularx}{7cm}{Xr@{\hspace{1cm}}r@{}} +% & \textbf{Subtotal} & \textbf{} \\ +% \end{tabularx} +% +%\newpage +% +%\markboth{\hfill }{\hfill } +% +%\begin{tabularx}{\textwidth}{@{}lXrlrrr@{}} +% \textbf{Number} & \textbf{Description} & \textbf{Qt'y} & +% \textbf{Unit} & \textbf{Price} & \textbf{Disc \%} & \textbf{Amount} \\ +% & carried forward from & & & & & \\ +% \vspace*{0.5cm} @@ -55,27 +56,27 @@ Special order items are subject to a 10\% cancellation fee. - + \hspace{-0.1cm}, - + \vspace{0.3cm} - + \vspace{0.2cm} - + - + Tel: - + - + Fax: - + } @@ -99,10 +100,16 @@ Fax: \begin{tabularx}{\textwidth}{@{}lXrlrrr@{}} \textbf{Number} & \textbf{Description} & \textbf{Qt'y} & \textbf{Unit} & \textbf{Price} & \textbf{Disc \%} & \textbf{Amount} \\ - - & & & - & & & \\ - + + + & + & + & + & + & + & + \\ + \end{tabularx} @@ -114,9 +121,10 @@ Fax: \hfill \begin{tabularx}{7cm}{Xr@{\hspace{1cm}}r@{}} & Subtotal & \\ - - & on & \\ - + + + & on & \\ + \hline & Total & \\ \end{tabularx} @@ -126,9 +134,9 @@ Fax: \hfill All prices in \textbf{}. - + Terms: days - + \vspace{12pt} diff --git a/templates/demo/statement.tex b/templates/demo/statement.tex index 4343c5c6..8fedc55f 100644 --- a/templates/demo/statement.tex +++ b/templates/demo/statement.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} @@ -11,7 +11,7 @@ \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont - + \parbox[t]{.5\textwidth}{ @@ -21,21 +21,21 @@ - + \hspace{-0.1cm}, - + } \parbox[t]{.5\textwidth}{ - + Tel: - + - + Fax: - + } @@ -52,10 +52,17 @@ Fax: \textbf{Invoice \#} & \textbf{Order \#} & \textbf{Date} & \textbf{Due} & \textbf{Current} & \textbf{30} & \textbf{60} & \textbf{90} \\ \hline - - & & & & - & & & \\ - + + + & + & + & + & + & + & + & + \\ + \multicolumn{8}{|l|}{\mbox{}} \\ \hline \textbf{Subtotal} & & & & & & & \\ diff --git a/templates/demo/timecard.tex b/templates/demo/timecard.tex index 1c54eb4f..e303ac10 100644 --- a/templates/demo/timecard.tex +++ b/templates/demo/timecard.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} @@ -11,7 +11,7 @@ \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont - + \centerline{\textbf{T I M E}\hspace{0.5cm}\textbf{C A R D}} diff --git a/templates/demo/work_order.tex b/templates/demo/work_order.tex index d3ca6959..c08a2da5 100644 --- a/templates/demo/work_order.tex +++ b/templates/demo/work_order.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} @@ -11,20 +11,21 @@ \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont - + - -\end{tabularx} - -\newpage - -\markboth{\hfill }{\hfill } - -\begin{tabularx}{\textwidth}{@{}rlXrll@{}} - \textbf{Item} & \textbf{Number} & \textbf{Description} & \textbf{Qt'y} & - & \textbf{Serial Number} \\ - +% Break old pagebreak directive +% +%\end{tabularx} +% +%\newpage +% +%\markboth{\hfill }{\hfill } +% +%\begin{tabularx}{\textwidth}{@{}rlXrll@{}} +% \textbf{Item} & \textbf{Number} & \textbf{Description} & \textbf{Qt'y} & +% & \textbf{Serial Number} \\ +% \vspace*{0.5cm} @@ -40,27 +41,27 @@ - + \hspace{-0.1cm}, - + \vspace{0.3cm} - + \vspace{0.2cm} - + - + Tel: - + - + Fax: - + } @@ -75,27 +76,27 @@ Fax: - + \hspace{-0.1cm}, - + \vspace{0.3cm} - + \vspace{0.2cm} - + - + Tel: - + - + Fax: - + } @@ -120,10 +121,15 @@ Fax: \begin{tabularx}{\textwidth}{@{}rlXrll@{}} \textbf{Item} & \textbf{Number} & \textbf{Description} & \textbf{Qt'y} & & \textbf{Serial Number} \\ - - & & & & - & \\ - + + + & + & + & + & + & + \\ + \end{tabularx} -- cgit v1.2.3