'';\r
--@]\r
\r
+\catcode`\{=1\r
+\catcode`\}=2\r
+\special{ps:%\r
+ SDict begin [\r
+ /Title (Invoice \#[@-- $invnum --@])\r
+ /DOCINFO pdfmark\r
+ end\r
+}\r
+\end\r
+\r
\addtolength{\voffset}{-0.0cm} % top margin to top of header\r
\addtolength{\hoffset}{-0.6cm} % left margin on page\r
\addtolength{\topmargin}{[@-- defined($topmargin) ? $topmargin : '-1.00cm' --@]}\r
\r
\LTchunksize=40\r
\r
+\r
+\begin{document}\r
+\r
+\r
\renewcommand{\headrulewidth}{0pt}\r
\renewcommand{\footrulewidth}{1pt}\r
\r
{ % First page\r
}\r
{ % ... pages\r
- \small{\thepage\ of \pageref{LastPage}}\r
+ \small{\thepage~[@-- emt('of') --@]~\pageref{LastPage}}\r
}\r
}\r
\r
\\\r
}\r
\r
-\begin{document}\r
% Headers and footers defined for the first page\r
\addressinset \rule{0.5cm}{0cm} \r
\makebox{\r
}\r
\r
--@]\r
+[@--\r
+\r
+ my @location_summary_sections =\r
+ grep {\r
+ ref $_->{location}\r
+ && $_->{locationnum}\r
+ && $_->{description}\r
+ && $_->{description} ne $finance_section\r
+ } @sections;\r
+ if ( $multisection eq 'location' && scalar(@location_summary_sections) > 1 ) {\r
+\r
+$OUT .= '\r
+ \hline\r
+ \section*{}\r
+ \captionsetup{singlelinecheck=false,justification=raggedright,font={Large,sc,bf}}\r
+ \ifthenelse{\equal{\thepage}{1}}{\setlength{\LTextracouponspace}{\extracouponspace}}{\setlength{\LTextracouponspace}{0pt}}\r
+\r
+ \begin{longtable}{cllllllr}\r
+ \caption*{ '. emt('Summary of New Charges by Location') .' }\r
+ \\\\\r
+\r
+ \hline\r
+ \rule{0pt}{2.5ex}\r
+ \makebox[1.4cm]{} &\r
+ \multicolumn{6}{l}{\r
+ \truncate{13.0cm}{\textbf{'. emt('Location') .'}}\r
+ } &\r
+ \makebox[1.6cm][r]{\textbf{'. emt('Amount') .'}} \\\\\r
+ \hline\r
+\r
+ \endfirsthead\r
+ \multicolumn{7}{r}{\rule{0pt}{2.5ex}'. emt('Continued from previous page') .'}\r
+ \\\r
+ \FShead\r
+ \endhead\r
+ \multicolumn{7}{r}{\rule{0pt}{2.5ex}'. emt('Continued on next page...') .'}\r
+ \\\r
+ \endfoot\r
+ \hline\r
+ \endlastfoot\r
+ \hline\r
+ ';\r
+\r
+ for my $section (@location_summary_sections) {\r
+ $OUT.= '\r
+ \rule{0pt}{2.5ex}\r
+ \makebox[1.4cm]{} &\r
+ \multicolumn{6}{l}{\r
+ \truncate{12.0cm}{\textbf{'. $section->{description} .'}}\r
+ } &\r
+ \makebox[1.6cm][r]{\textbf{'. $section->{subtotal} .'}} \\\\\r
+ ';\r
+ }\r
+\r
+ $OUT .= '\end{longtable}';\r
+ }\r
+--@]\r
+\r
\vfill\r
\begin{minipage}[t]{\textwidth}\r
[@-- length($summary)\r