[freeside-commits] freeside/conf invoice_latex, 1.27, 1.28 longtable.sty.patch, NONE, 1.1

Jeff Finucane,420,, jeff at wavetail.420.am
Fri Oct 10 14:30:15 PDT 2008


Update of /home/cvs/cvsroot/freeside/conf
In directory wavetail.420.am:/tmp/cvs-serv3873

Modified Files:
	invoice_latex 
Added Files:
	longtable.sty.patch 
Log Message:
avoid overprinting remittance coupons

--- NEW FILE: longtable.sty.patch ---
--- longtable.orig      2004-03-13 21:37:06.000000000 -0500
+++ longtable.sty       2008-10-10 16:32:25.000000000 -0400
@@ -55,6 +55,7 @@
 \newcount\LTchunksize \LTchunksize=20
 \let\c at LTchunksize\LTchunksize
 \newdimen\LTcapwidth  \LTcapwidth=4in
+\newlength\LTextracouponspace
 \newbox\LT at head
 \newbox\LT at firsthead
 \newbox\LT at foot
@@ -146,6 +147,7 @@
   \advance\dimen@ \ht\ifvoid\LT at firsthead\LT at head\else\LT at firsthead\fi
   \advance\dimen@ \dp\ifvoid\LT at firsthead\LT at head\else\LT at firsthead\fi
   \advance\dimen@ \ht\LT at foot
+  \advance\dimen@ \LTextracouponspace
   \dimen at ii\vfuzz
   \vfuzz\maxdimen
     \setbox\tw@\copy\z@

Index: invoice_latex
===================================================================
RCS file: /home/cvs/cvsroot/freeside/conf/invoice_latex,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- invoice_latex	8 Aug 2008 18:13:05 -0000	1.27
+++ invoice_latex	10 Oct 2008 21:30:12 -0000	1.28
@@ -237,6 +237,8 @@
     }
     $OUT .= '\pagebreak' if $section{'post_total'};
     $OUT .= '\captionsetup{singlelinecheck=false,justification=raggedright,font={Large,sc,bf}}';
+    $OUT .= '\ifthenelse{\equal{\thepage}{1}}{\setlength{\LTextracouponspace}{\extracouponspace}}{\setlength{\LTextracouponspace}{0pt}}'
+      if $coupon;
     $OUT .= '\begin{longtable}{cllllllr}';
     $OUT .= '\caption*{ ';
     $OUT .= ($section->{'description'}) ? $section->{'description'}: 'Charges';



More information about the freeside-commits mailing list