summaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorjeff <jeff>2008-10-12 23:56:46 +0000
committerjeff <jeff>2008-10-12 23:56:46 +0000
commit9c42579467b332e5b188c75e5acb109eb33b7297 (patch)
treecaa6f209f27df508590de4b15396f8e51a205994 /conf
parent8ea6133034d6bd59d379d96fdc30c56d27770670 (diff)
better column widths and easier maintenance
Diffstat (limited to 'conf')
-rw-r--r--conf/invoice_latex41
1 files changed, 18 insertions, 23 deletions
diff --git a/conf/invoice_latex b/conf/invoice_latex
index fa4711196..d81916019 100644
--- a/conf/invoice_latex
+++ b/conf/invoice_latex
@@ -156,7 +156,22 @@
\renewcommand{\familydefault}{phv}
-% Commands for freeside description...
+% Commands for freeside table header...
+\newcommand{\FShead}{
+ \hline
+ \rule{0pt}{2.5ex}
+ \makebox[1.4cm]{\textbf{Ref}} &
+ \makebox[2.9cm][l]{\textbf{Description}}&
+ \makebox[1.4cm][l]{}&
+ \makebox[1.4cm][l]{}&
+ \makebox[2.5cm][l]{}&
+ \makebox[2.5cm][l]{\textbf{[@-- $unitprices ? '~~Unit Price' : '' --@]}}&
+ \makebox[1.4cm]{\textbf{[@-- $unitprices ? '~Quantity' : '' --@]}}&
+ \makebox[1.6cm][r]{\textbf{Amount}} \\
+ \hline
+}
+
+% ...description...
\newcommand{\FSdesc}[5]{
\multicolumn{1}{c}{\rule{0pt}{2.5ex}\textbf{#1}} &
\multicolumn{4}{l}{\textbf{#2}} &
@@ -243,30 +258,10 @@ Terms: [@-- $terms --@]\\
$OUT .= '\caption*{ ';
$OUT .= ($section->{'description'}) ? $section->{'description'}: 'Charges';
$OUT .= '}\\\\';
- $OUT .= '\hline';
- $OUT .= '\rule{0pt}{2.5ex}';
- $OUT .= '\makebox[1.4cm]{\textbf{Ref}} & ';
- $OUT .= '\makebox[2.0cm][l]{\textbf{Description}}& ';
- $OUT .= '\makebox[2.0cm][l]{}& ';
- $OUT .= '\makebox[2.0cm][l]{}& ';
- $OUT .= '\makebox[2.0cm][l]{}& ';
- $OUT .= '\makebox[2.0cm][l]{\textbf{'. ($unitprices ? '~~Unit Price' : ''). '}}&';
- $OUT .= '\makebox[2.0cm]{\textbf{'. ($unitprices ? '~Quantity' : ''). '}}&';
- $OUT .= '\makebox[2.0cm][r]{\textbf{Amount}} \\\\';
- $OUT .= '\hline';
+ $OUT .= '\FShead';
$OUT .= '\endfirsthead';
$OUT .= '\multicolumn{7}{r}{\rule{0pt}{2.5ex}Continued from previous page}\\\\';
- $OUT .= '\hline';
- $OUT .= '\rule{0pt}{2.5ex}';
- $OUT .= '\makebox[1.4cm]{\textbf{Ref}} & ';
- $OUT .= '\makebox[2.0cm][l]{\textbf{Description}}& ';
- $OUT .= '\makebox[2.0cm][l]{}& ';
- $OUT .= '\makebox[2.0cm][l]{}& ';
- $OUT .= '\makebox[2.0cm][l]{}& ';
- $OUT .= '\makebox[2.0cm][l]{\textbf{'. ($unitprices ? '~~Unit Price' : ''). '}}&';
- $OUT .= '\makebox[2.0cm]{\textbf{'. ($unitprices ? '~Quantity' : ''). '}}&';
- $OUT .= '\makebox[2.0cm][r]{\textbf{Amount}} \\\\';
- $OUT .= '\hline';
+ $OUT .= '\FShead';
$OUT .= '\endhead';
$OUT .= '\multicolumn{7}{r}{\rule{0pt}{2.5ex}Continued on next page...}\\\\';
$OUT .= '\endfoot';