diff options
author | jeff <jeff> | 2009-01-07 16:59:48 +0000 |
---|---|---|
committer | jeff <jeff> | 2009-01-07 16:59:48 +0000 |
commit | 619b9c20b1c2c76d439284bd6d023e5d5d9dbc7d (patch) | |
tree | 74f1472b0aadeec515faeca7dc12d892639e6e17 /conf | |
parent | 35cf428c7c4f9f67125f8a648acb87304f0844b5 (diff) |
allow tex to do more column sizing
Diffstat (limited to 'conf')
-rw-r--r-- | conf/invoice_latex | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/conf/invoice_latex b/conf/invoice_latex index 90ff0ea6b..aaec6be21 100644 --- a/conf/invoice_latex +++ b/conf/invoice_latex @@ -157,16 +157,21 @@ % Commands for freeside table header...
+
+\newcommand{\FSdescriptionlength} { [@-- $unitprices ? '8.2cm' : '12.8cm' --@] }
+\newcommand{\FSdescriptioncolumncount} { [@-- $unitprices ? '4' : '6' --@] }
+\newcommand{\FSunitcolumns}{ [@-- $unitprices ? '\makebox[2.5cm][l]{\textbf{~~Unit Price}}&\makebox[1.4cm]{\textbf{~Quantity}}&' : '' --@] }
+
\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[2.9cm][l]{\textbf{Description}}&
+% \makebox[1.4cm][l]{}&
+% \makebox[1.4cm][l]{}&
+% \makebox[2.5cm][l]{}&
+ \multicolumn{\FSdescriptioncolumncount}{l}{\makebox[\FSdescriptionlength][l]{\textbf{Description}}}&
+ \FSunitcolumns
\makebox[1.6cm][r]{\textbf{Amount}} \\
\hline
}
|