better column widths and easier maintenance
authorjeff <jeff>
Sun, 12 Oct 2008 23:57:06 +0000 (23:57 +0000)
committerjeff <jeff>
Sun, 12 Oct 2008 23:57:06 +0000 (23:57 +0000)
conf/invoice_latex

index be20818..0abdd6d 100644 (file)
 \renewcommand{\familydefault}{phv}\r
 \r
 \r
-% Commands for freeside description...\r
+% Commands for freeside table header...\r
+\newcommand{\FShead}{\r
+  \hline\r
+  \rule{0pt}{2.5ex}\r
+  \makebox[1.4cm]{\textbf{Ref}} &\r
+  \makebox[2.9cm][l]{\textbf{Description}}&\r
+  \makebox[1.4cm][l]{}&\r
+  \makebox[1.4cm][l]{}&\r
+  \makebox[2.5cm][l]{}&\r
+  \makebox[2.5cm][l]{\textbf{[@-- $unitprices ? '~~Unit Price' : '' --@]}}&\r
+  \makebox[1.4cm]{\textbf{[@-- $unitprices ? '~Quantity' : '' --@]}}&\r
+  \makebox[1.6cm][r]{\textbf{Amount}} \\\r
+  \hline\r
+}\r
+\r
+% ...description...\r
 \newcommand{\FSdesc}[5]{\r
   \multicolumn{1}{c}{\rule{0pt}{2.5ex}\textbf{#1}} &\r
   \multicolumn{4}{l}{\textbf{#2}} &\r
@@ -227,31 +242,10 @@ Terms: [@-- $terms --@]\\
 %\r
 \section*{\textsc{Charges}}\r
 \begin{longtable}{cllllllr}\r
-\hline\r
-\rule{0pt}{2.5ex}\r
-\makebox[1.4cm]{\textbf{Ref}} & \r
-\makebox[2.0cm][l]{\textbf{Description}}&\r
-\makebox[2.0cm][l]{}&\r
-\makebox[2.0cm][l]{}&\r
-\makebox[2.0cm][l]{}&\r
-\makebox[2.0cm][l]{\textbf{[@-- $unitprices ? '~~Unit Price' : '' --@]}}&\r
-\makebox[2.0cm]{\textbf{[@-- $unitprices ? '~Quantity' : '' --@]}}&\r
-\makebox[2.0cm][r]{\textbf{Amount}} \\\r
-%\r
-\hline\r
+\FShead\r
 \endfirsthead\r
 \multicolumn{7}{r}{\rule{0pt}{2.5ex}Continued from previous page}\\\r
-\hline\r
-\rule{0pt}{2.5ex}\r
-\makebox[1.4cm]{\textbf{Ref}} & \r
-\makebox[2.0cm][l]{\textbf{Description}}&\r
-\makebox[2.0cm][l]{}&\r
-\makebox[2.0cm][l]{}&\r
-\makebox[2.0cm][l]{}&\r
-\makebox[2.0cm][l]{\textbf{[@-- $unitprices ? '~~Unit Price' : '' --@]}}&\r
-\makebox[2.0cm]{\textbf{[@-- $unitprices ? '~Quantity' : '' --@]}}&\r
-\makebox[2.0cm][r]{\textbf{Amount}} \\\r
-\hline\r
+\FShead\r
 \endhead\r
 \multicolumn{7}{r}{\rule{0pt}{2.5ex}Continued on next page...}\\\r
 \endfoot\r