[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[3668] trunk/templates/demo
- Subject: SF.net SVN: ledger-smb:[3668] trunk/templates/demo
- From: ..hidden..
- Date: Thu, 18 Aug 2011 03:05:45 +0000
Revision: 3668
http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=3668&view=rev
Author: einhverfr
Date: 2011-08-18 03:05:44 +0000 (Thu, 18 Aug 2011)
Log Message:
-----------
All invoice/order/quotation templates now working on longtable instead of tabularx
Modified Paths:
--------------
trunk/templates/demo/purchase_order.tex
trunk/templates/demo/request_quotation.tex
trunk/templates/demo/sales_quotation.tex
Modified: trunk/templates/demo/purchase_order.tex
===================================================================
--- trunk/templates/demo/purchase_order.tex 2011-08-18 00:37:42 UTC (rev 3667)
+++ trunk/templates/demo/purchase_order.tex 2011-08-18 03:05:44 UTC (rev 3668)
@@ -2,6 +2,9 @@
\documentclass{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage{tabularx}
+\usepackage{longtable}
+\setlength\LTleft{0pt}
+\setlength\LTright{0pt}
\usepackage[letterpaper,top=2cm,bottom=1.5cm,left=1.1cm,right=1.5cm]{geometry}
\usepackage{graphicx}
@@ -16,28 +19,8 @@
<?lsmb INCLUDE letterhead.tex ?>
-% Breaking old pagebreak directive
-%<?xlsmb pagebreak 65 27 48 ?>
-%\end{tabularx}
-%
-% \rule{\textwidth}{2pt}
-%
-% \hfill
-% ..hidden..@{}}
-% & Subtotal & <?xlsmb sumcarriedforward ?> \\
-% \end{tabularx}
-%
-%\newpage
-%
-%\markboth{<?xlsmb company ?>\hfill <?xlsmb ordnumber ?>}{<?xlsmb company ?>\hfill <?xlsmb ordnumber ?>}
-%
..hidden..@{}}
-% \textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
-% \textbf{Unit} & \textbf{Price} & \textbf{Amount} \\
-% & carried forward from <?xlsmb lastpage ?> & & & & <?xlsmb sumcarriedforward ?> \\
-%<?xlsmb end pagebreak ?>
+\markboth{<?lsmb company ?>\hfill <?lsmb ordnumber ?>}{<?lsmb company ?>\hfill <?lsmb ordnumber ?>}
-
\vspace*{0.5cm}
\parbox[t]{.5\textwidth}{
@@ -101,8 +84,8 @@
<?lsmb END ?>
<?lsmb IF shiptophone ?>
-<lsmb text('Tel: [_1]', shiptophone) ?>
-<?lsmb END ?>
+<?lsmb text('Tel: [_1]', shiptophone) ?>
+<?lsmb END ?>/
<?lsmb IF shiptofax ?>
<?lsmb text('Fax: [_1]', shiptofax) ?>
@@ -120,9 +103,9 @@
\vspace{1cm}
\begin{tabularx}{\textwidth}{*{6}{|X}|} \hline
\textbf{<?lsmb text('Order #') ?>} & \textbf{text('Date') ?>}
- & \textbf{<?lsmb text('Required by') ?>} & \textbf{<?lsmb('Contact' ?>}
+ & \textbf{<?lsmb text('Required by') ?>} & \textbf{<?lsmb text('Contact') ?>}
& \textbf{<?lsmb text('Shipping Point') ?>}
- & \textbf{<lsmb text('Ship via') ?>} \\ [0.5ex]
+ & \textbf{<?lsmb text('Ship via') ?>} \\ [0.5ex]
\hline
<?lsmb ordnumber ?> & <?lsmb orddate ?> & <?lsmb reqdate ?> & <?lsmb employee ?> & <?lsmb shippingpoint ?> & <?lsmb shipvia ?> \\
\hline
@@ -130,11 +113,12 @@
\vspace{1cm}
..hidden..@{}}
..hidden..@{\extracolsep{0pt}}}
\textbf{<?lsmb text('Number') ?>} & \textbf{<?lsmb text('Description') ?>}
& \textbf{<?lsmb text('Qty') ?>} &
\textbf{<?lsmb text('Unit') ?>} & \textbf{<?lsmb text('Price') ?>}
& \textbf{<?lsmb text('Amount') ?>} \\
+\endhead
<?lsmb FOREACH number ?>
<?lsmb lc = loop.count - 1 ?>
<?lsmb number.${lc} ?> &
@@ -144,7 +128,7 @@
<?lsmb sellprice.${lc} ?> &
<?lsmb linetotal.${lc} ?> \\
<?lsmb END ?>
-\end{tabularx}
+\end{longtable}
\parbox{\textwidth}{
Modified: trunk/templates/demo/request_quotation.tex
===================================================================
--- trunk/templates/demo/request_quotation.tex 2011-08-18 00:37:42 UTC (rev 3667)
+++ trunk/templates/demo/request_quotation.tex 2011-08-18 03:05:44 UTC (rev 3668)
@@ -2,6 +2,9 @@
\documentclass{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage{tabularx}
+\usepackage{longtable}
+\setlength\LTleft{0pt}
+\setlength\LTright{0pt}
\usepackage[letterpaper,top=2cm,bottom=1.5cm,left=1.1cm,right=1.5cm]{geometry}
\usepackage{graphicx}
@@ -15,26 +18,7 @@
<?lsmb INCLUDE letterhead.tex ?>
-% Breaking old pagebreak directive
-%<?xlsmb pagebreak 65 27 48 ?>
-%\end{tabularx}
-%
-% \rule{\textwidth}{2pt}
-%
-% \hfill
-% ..hidden..@{}}
-% & \textbf{Subtotal} & \textbf{<?xlsmb sumcarriedforward ?>} \\
-% \end{tabularx}
-%
-%\newpage
-%
-%\markboth{<?xlsmb company ?>\hfill <?xlsmb ordnumber ?>}{<?xlsmb company ?>\hfill <?xlsmb ordnumber ?>}
-%
..hidden..@{}}
-% \textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
-% \textbf{Unit} & \textbf{Price} & \textbf{Extended} \\
-% & carried forward from <?xlsmb lastpage ?> & & & & <?xlsmb sumcarriedforward ?> \\
-%<?xlsmb end pagebreak ?>
+\markboth{<?lsmb company ?>\hfill <?lsmb ordnumber ?>}{<?lsmb company ?>\hfill <?lsmb ordnumber ?>}
\vspace*{0.5cm}
@@ -100,7 +84,7 @@
<?lsmb END ?>
<?lsmb IF shiptophone ?>
-<?lsmb text(Tel: [_1]', shiptophone) ?>
+<?lsmb text('Tel: [_1]', shiptophone) ?>
<?lsmb END ?>
<?lsmb IF shiptofax ?>
@@ -113,7 +97,7 @@
\vspace{1cm}
-\textbf{\MakeUppercase{<?lsmb text('Request for Quotation')}}
+\textbf{\MakeUppercase{<?lsmb text('Request for Quotation') ?>}}
\hfill
\vspace{1cm}
@@ -134,10 +118,11 @@
\vspace{1cm}
..hidden..@{}}
..hidden..@{\extracolsep{\fill}}}
\textbf{<?lsmb text('Number') ?>} & \textbf{<?lsmb text('Description') ?>}
& \textbf{<?lsmb text('Qty') ?>} & & \textbf{<?lsmb text('Delivery') ?>}
- & \textbf{<?lsmb text('Unit Price') ?>} & \textbf{<?lsmb text('Extended') ?>} \\
+ & \textbf{<?lsmb text('Unit Price') ?>} & \textbf{<?lsmb text('Extended') ?>}
+\endhead
<?lsmb FOREACH number ?>
<?lsmb lc = loop.count - 1 ?>
<?lsmb number.${lc} ?> &
@@ -145,7 +130,7 @@
<?lsmb qty.${lc} ?> &
<?lsmb unit.${lc} ?> \\
<?lsmb END ?>
-\end{tabularx}
+\end{longtable}
\parbox{\textwidth}{
Modified: trunk/templates/demo/sales_quotation.tex
===================================================================
--- trunk/templates/demo/sales_quotation.tex 2011-08-18 00:37:42 UTC (rev 3667)
+++ trunk/templates/demo/sales_quotation.tex 2011-08-18 03:05:44 UTC (rev 3668)
@@ -2,6 +2,9 @@
\documentclass{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage{tabularx}
+\usepackage{longtable}
+\setlength\LTleft{0pt}
+\setlength\LTright{0pt}
\usepackage[letterpaper,top=2cm,bottom=1.5cm,left=1.1cm,right=1.5cm]{geometry}
\usepackage{graphicx}
@@ -24,28 +27,8 @@
<?lsmb INCLUDE letterhead.tex ?>
-% Breaking old pagebreak directive
-%<?xlsmb pagebreak 65 27 48 ?>
-%\end{tabularx}
-%
-% \rule{\textwidth}{2pt}
-%
-% \hfill
-% ..hidden..@{}}
-% & \textbf{Subtotal} & \textbf{<?xlsmb sumcarriedforward ?>} \\
-% \end{tabularx}
-%
-%\newpage
-%
-%\markboth{<?xlsmb company ?>\hfill <?xlsmb quonumber ?>}{<?xlsmb company ?>\hfill <?xlsmb quonumber ?>}
-%
..hidden..@{}}
-% \textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
-% \textbf{Unit} & \textbf{Price} & \textbf{Disc \%} & \textbf{Amount} \\
-% & carried forward from <?xlsmb lastpage ?> & & & & & <?xlsmb sumcarriedforward ?> \\
-%<?xlsmb end pagebreak ?>
+\markboth{<?lsmb company ?>\hfill <?lsmb quonumber ?>}{<?lsmb company ?>\hfill <?lsmb quonumber ?>}
-
\vspace*{0.5cm}
\parbox[t]{.5\textwidth}{
@@ -101,11 +84,12 @@
\vspace{1cm}
..hidden..@{}}
..hidden..@{\extracolsep{0pt}}}
\textbf{<?lsmb text('Number') ?>} & \textbf{<?lsmb text('Description') ?>}
& \textbf{<?lsmb text('Qty') ?>} & \textbf{<?lsmb text('Unit') ?>}
& \textbf{<?lsmb text('Price') ?>} & \textbf{<?lsmb text('Disc %') ?>}
- & \textbf{<?lsmb text('Amount') ?>} \\
+ & \textbf{<?lsmb text('Amount') ?>}
+\endhead
<?lsmb FOREACH number ?>
<?lsmb lc = loop.count - 1 ?>
<?lsmb number.${lc} ?> &
@@ -116,7 +100,7 @@
<?lsmb discountrate.${lc} ?> &
<?lsmb linetotal.${lc} ?> \\
<?lsmb END ?>
-\end{tabularx}
+\end{longtable}
\parbox{\textwidth}{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.