[freeside-commits] freeside/conf invoice_html, 1.10, 1.11 invoice_latex, 1.17, 1.18

Jeff Finucane,420,, jeff at wavetail.420.am
Sat May 31 07:49:05 PDT 2008


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

Modified Files:
	invoice_html invoice_latex 
Log Message:
invoice cosmetic improvements

Index: invoice_latex
===================================================================
RCS file: /home/cvs/cvsroot/freeside/conf/invoice_latex,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- invoice_latex	19 May 2008 22:31:28 -0000	1.17
+++ invoice_latex	31 May 2008 14:49:03 -0000	1.18
@@ -19,7 +19,7 @@
 
 \documentclass[letterpaper]{article}
 
-\usepackage{fancyhdr,lastpage,ifthen,longtable,afterpage}
+\usepackage{fancyhdr,lastpage,ifthen,longtable,afterpage,caption}
 \usepackage{graphicx}			% required for logo graphic
 
 \addtolength{\voffset}{-0.0cm}		% top margin to top of header
@@ -35,6 +35,8 @@
 \setlength{\oddsidemargin}{-0.9cm} 	% odd page left margin
 \setlength{\evensidemargin}{-0.9cm} 	% even page left margin
 
+\LTchunksize=40
+
 \renewcommand{\headrulewidth}{0pt}
 \renewcommand{\footrulewidth}{1pt}
 
@@ -188,11 +190,19 @@
 \end{minipage}}
 \vspace{1.5cm}
 %
+\section*{}
 [@--
   foreach my $section ( @sections ) {
-    $OUT .= '\section*{\textsc{';
-    $OUT .= ($section->{'description'}) ? $section->{'description'} : 'Charges';
-    $OUT .= '}}\begin{longtable}{cllllllr}';
+    if ($section->{'pretotal'}) {
+      $OUT .= '\begin{flushright}';
+      $OUT .= '\large\textsc{'. $section->{'pretotal'}. '}\\\\';
+      $OUT .= '\\end{flushright}';
+    }
+    $OUT .= '\captionsetup{singlelinecheck=false,justification=raggedright,font={Large,sc,bf}}';
+    $OUT .= '\begin{longtable}{cllllllr}';
+    $OUT .= '\caption*{ ';
+    $OUT .= ($section->{'description'}) ? $section->{'description'}: 'Charges';
+    $OUT .= '}\\\\';
     $OUT .= '\hline';
     $OUT .= '\rule{0pt}{2.5ex}';
     $OUT .= '\makebox[1.4cm]{\textbf{Ref}} & ';
@@ -256,6 +266,11 @@
 
     $OUT .= '\end{longtable}';
 
+    if ($section->{'posttotal'}) {
+      $OUT .= '\begin{flushright}';
+      $OUT .= '\normalfont\large\bfseries\textsc{'. $section->{'posttotal'}. '}\\\\';
+      $OUT .= '\\end{flushright}';
+    }
   }
 
 --@]

Index: invoice_html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/conf/invoice_html,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- invoice_html	16 May 2008 19:26:39 -0000	1.10
+++ invoice_html	31 May 2008 14:49:03 -0000	1.11
@@ -70,6 +70,16 @@
 
   <%=
       foreach my $section ( @sections ) {
+        if ($section->{'pretotal'}) {
+          $OUT .=
+            '<table width="100%"><tr><td>'.
+            '<p align="right"><b><font size="+1">'.
+            uc(substr($section->{'pretotal'},0,1)).
+            '</font><font size="+0">'. uc(substr($section->{'pretotal'},1)).
+            '</font></b>'.
+            '<p>'.
+            '</td></tr></table>';
+        }
         $OUT .= '<table><tr><td>';
         if ($section->{'description'}) {
           $OUT .=
@@ -132,6 +142,16 @@
             '</tr>'
         ;
         }
+
+        if ($section->{'posttotal'}) {
+          $OUT .= '<tr><td align="right" colspan=3>';
+          $OUT .=
+            '<p><font size="+1">'. $section->{'posttotal'}.
+            '</font>'.
+            '<p>';
+          $OUT .= '</td></tr>';
+        }
+
       }
 
       my $style = 'border-top: 3px solid #000000;';



More information about the freeside-commits mailing list