X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=conf%2Finvoice_latex;h=60d2580c7e21f32296dcca84b1e27a68baf7e78b;hb=489b07f487fc230e723618b9d1fe981cc8a620c2;hp=c1d04d65136f51c32e0c65faea602ba3ae38ba5a;hpb=d0549e4bbb9fd7d639fbc66d328b1eecb939285b;p=freeside.git diff --git a/conf/invoice_latex b/conf/invoice_latex index c1d04d651..60d2580c7 100644 --- a/conf/invoice_latex +++ b/conf/invoice_latex @@ -117,7 +117,7 @@ { % First page } { % ... pages - \small{\thepage\ of \pageref{LastPage}} + \small{\thepage~[@-- emt('of') --@]~\pageref{LastPage}} } } @@ -434,6 +434,64 @@ } --@] +[@-- + + my @location_summary_sections = + grep { + ref $_->{location} + && $_->{locationnum} + && $_->{description} + && $_->{description} ne $finance_section + } @sections; + if ( $multisection eq 'location' && scalar(@location_summary_sections) > 1 ) { + +$OUT .= ' + \hline + \section*{} + \captionsetup{singlelinecheck=false,justification=raggedright,font={Large,sc,bf}} + \ifthenelse{\equal{\thepage}{1}}{\setlength{\LTextracouponspace}{\extracouponspace}}{\setlength{\LTextracouponspace}{0pt}} + + \begin{longtable}{cllllllr} + \caption*{ '. emt('Summary of New Charges by Location') .' } + \\\\ + + \hline + \rule{0pt}{2.5ex} + \makebox[1.4cm]{} & + \multicolumn{6}{l}{ + \truncate{13.0cm}{\textbf{'. emt('Location') .'}} + } & + \makebox[1.6cm][r]{\textbf{'. emt('Amount') .'}} \\\\ + \hline + + \endfirsthead + \multicolumn{7}{r}{\rule{0pt}{2.5ex}'. emt('Continued from previous page') .'} + \\ + \FShead + \endhead + \multicolumn{7}{r}{\rule{0pt}{2.5ex}'. emt('Continued on next page...') .'} + \\ + \endfoot + \hline + \endlastfoot + \hline + '; + + for my $section (@location_summary_sections) { + $OUT.= ' + \rule{0pt}{2.5ex} + \makebox[1.4cm]{} & + \multicolumn{6}{l}{ + \truncate{12.0cm}{\textbf{'. $section->{description} .'}} + } & + \makebox[1.6cm][r]{\textbf{'. $section->{subtotal} .'}} \\\\ + '; + } + + $OUT .= '\end{longtable}'; + } +--@] + \vfill \begin{minipage}[t]{\textwidth} [@-- length($summary)