[freeside-commits] freeside/conf invoice_latex,1.16,1.17
Jeff Finucane,420,,
jeff at wavetail.420.am
Mon May 19 15:31:31 PDT 2008
Update of /home/cvs/cvsroot/freeside/conf
In directory wavetail.420.am:/tmp/cvs-serv2554/conf
Modified Files:
invoice_latex
Log Message:
fix broken pagenation
Index: invoice_latex
===================================================================
RCS file: /home/cvs/cvsroot/freeside/conf/invoice_latex,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- invoice_latex 19 May 2008 03:51:44 -0000 1.16
+++ invoice_latex 19 May 2008 22:31:28 -0000 1.17
@@ -137,17 +137,18 @@
% Commands for freeside description...
\newcommand{\FSdesc}[3]{
\multicolumn{1}{c}{\rule{0pt}{2.5ex}\textbf{#1}} &
- \textbf{#2} &
+ \multicolumn{6}{l}{\textbf{#2}} &
\multicolumn{1}{r}{\textbf{\dollar #3}}\\
}
% ...extended description...
\newcommand{\FSextdesc}[1]{
\multicolumn{1}{l}{\rule{0pt}{1.0ex}} &
- \multicolumn{2}{l}{\small{~-~#1}}\\
+%% \multicolumn{2}{l}{\small{~-~#1}}\\
+ ~-~#1\\
}
% ...and total line items.
\newcommand{\FStotaldesc}[2]{
- & \multicolumn{1}{l}{#1} & #2\\
+ & \multicolumn{6}{l}{#1} & #2\\
}
@@ -191,23 +192,23 @@
foreach my $section ( @sections ) {
$OUT .= '\section*{\textsc{';
$OUT .= ($section->{'description'}) ? $section->{'description'} : 'Charges';
- $OUT .= '}}\begin{longtable}{clr}';
+ $OUT .= '}}\begin{longtable}{cllllllr}';
$OUT .= '\hline';
$OUT .= '\rule{0pt}{2.5ex}';
$OUT .= '\makebox[1.4cm]{\textbf{Ref}} & ';
- $OUT .= '\makebox[12.8cm][l]{\textbf{Description}} & ';
+ $OUT .= '\multicolumn{6}{l}{\makebox[12.8cm][l]{\textbf{Description}}} & ';
$OUT .= '\makebox[2.5cm][r]{\textbf{Amount}} \\\\';
$OUT .= '\hline';
$OUT .= '\endfirsthead';
- $OUT .= '\multicolumn{3}{r}{\rule{0pt}{2.5ex}Continued from previous page}\\\\';
+ $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[12.8cm][l]{\textbf{Description}} & ';
+ $OUT .= '\multicolumn{6}{l}{\makebox[12.8cm][l]{\textbf{Description}}} & ';
$OUT .= '\makebox[2.5cm][r]{\textbf{Amount}} \\\\';
$OUT .= '\hline';
$OUT .= '\endhead';
- $OUT .= '\multicolumn{3}{r}{\rule{0pt}{2.5ex}Continued on next page...}\\\\';
+ $OUT .= '\multicolumn{7}{r}{\rule{0pt}{2.5ex}Continued on next page...}\\\\';
$OUT .= '\endfoot';
$OUT .= '\hline';
@@ -242,15 +243,13 @@
$OUT .= '\FSdesc{' . $line->{'ref'} . '}{' . $line->{'description'} . '}' .
'{' . $line->{'amount'} . "}${rowbreak}\n";
- if (@$ext_description) {
- $OUT .= '\multicolumn{1}{l}{\rule{0pt}{1.0ex}} &';
- $OUT .= '\multicolumn{2}{l}{\small{\begin{tabular}{llllll}';#cheating at 6
- foreach my $ext_desc (@$ext_description) {
+ foreach my $ext_desc (@$ext_description) {
+ if ( $ext_desc !~ /[^\\]&/ ) {
$ext_desc = substr($ext_desc, 0, 80) . '...'
if (length($ext_desc) > 80);
- $OUT .= "$ext_desc \\\\${rowbreak}\n";
+ $ext_desc = '\small{'. $ext_desc. '}';
}
- $OUT .="\\end{tabular}}}\\\\${rowbreak}\n";
+ $OUT .= '\FSextdesc{' . $ext_desc . '}' . "${rowbreak}\n";
}
}
More information about the freeside-commits
mailing list