X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=conf%2Finvoice_latex;h=478405ebd82eb8a78f594708e2b3a22672fc852f;hb=3e6b291920daf5546efa5355e3ea6199e875d9db;hp=c1d04d65136f51c32e0c65faea602ba3ae38ba5a;hpb=1db161f21c577aeded3240c0783a10da77d639de;p=freeside.git diff --git a/conf/invoice_latex b/conf/invoice_latex index c1d04d651..478405ebd 100644 --- a/conf/invoice_latex +++ b/conf/invoice_latex @@ -38,6 +38,16 @@ ''; --@] +\catcode`\{=1 +\catcode`\}=2 +\special{ps:% + SDict begin [ + /Title (Invoice \#[@-- $invnum --@]) + /DOCINFO pdfmark + end +} +\end + \addtolength{\voffset}{-0.0cm} % top margin to top of header \addtolength{\hoffset}{-0.6cm} % left margin on page \addtolength{\topmargin}{[@-- defined($topmargin) ? $topmargin : '-1.00cm' --@]} @@ -53,6 +63,10 @@ \LTchunksize=40 + +\begin{document} + + \renewcommand{\headrulewidth}{0pt} \renewcommand{\footrulewidth}{1pt} @@ -117,7 +131,7 @@ { % First page } { % ... pages - \small{\thepage\ of \pageref{LastPage}} + \small{\thepage~[@-- emt('of') --@]~\pageref{LastPage}} } } @@ -258,7 +272,6 @@ \\ } -\begin{document} % Headers and footers defined for the first page \addressinset \rule{0.5cm}{0cm} \makebox{ @@ -434,6 +447,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)