From fe16cec1c82f4e1f1c2586c8259cd607fcb14d79 Mon Sep 17 00:00:00 2001 From: jeff Date: Sat, 31 May 2008 14:49:03 +0000 Subject: invoice cosmetic improvements --- conf/invoice_latex | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) (limited to 'conf/invoice_latex') diff --git a/conf/invoice_latex b/conf/invoice_latex index ece0897da..aadd326c5 100644 --- a/conf/invoice_latex +++ b/conf/invoice_latex @@ -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 @@ Terms: [@-- $terms --@]\\ \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 @@ Terms: [@-- $terms --@]\\ $OUT .= '\end{longtable}'; + if ($section->{'posttotal'}) { + $OUT .= '\begin{flushright}'; + $OUT .= '\normalfont\large\bfseries\textsc{'. $section->{'posttotal'}. '}\\\\'; + $OUT .= '\\end{flushright}'; + } } --@] -- cgit v1.2.1