X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=conf%2Finvoice_latex;h=29a901df1e3a78c49ebfbfd807010c519ca29c6e;hp=18fa61fb293dbcf480c725431b4f746f56bd0935;hb=74e058c8a010ef6feb539248a550d0bb169c1e94;hpb=3237f725e9b509b151e6ea6cf9e13d0d3cf171b2 diff --git a/conf/invoice_latex b/conf/invoice_latex index 18fa61fb2..29a901df1 100644 --- a/conf/invoice_latex +++ b/conf/invoice_latex @@ -24,14 +24,14 @@ \addtolength{\voffset}{-0.0cm} % top margin to top of header \addtolength{\hoffset}{-0.6cm} % left margin on page -\addtolength{\topmargin}{-1.25cm} % top margin to top of header +\addtolength{\topmargin}{[@-- defined($topmargin) ? $topmargin : '-1.25cm' --@]} \setlength{\headheight}{2.0cm} % height of header -\setlength{\headsep}{1.0cm} % between header and text +\setlength{\headsep}{[@-- defined($headsep) ? $headsep : '1.0cm' --@]} \setlength{\footskip}{1.0cm} % bottom of footer from bottom of text %\addtolength{\textwidth}{2.1in} % width of text \setlength{\textwidth}{19.5cm} -\setlength{\textheight}{19.5cm} +\setlength{\textheight}{[@-- defined($textheight) ? $textheight : '19.5cm' --@]} \setlength{\oddsidemargin}{-0.9cm} % odd page left margin \setlength{\evensidemargin}{-0.9cm} % even page left margin @@ -51,7 +51,7 @@ } } -\newcommand{\extracouponspace}{3.6cm} +\newcommand{\extracouponspace}{[@-- defined($extracouponspace) ? $extracouponspace : '3.6cm' --@]} % Adjust the inset of the mailing address \newcommand{\addressinset}[1][]{\hspace{1.0cm}} @@ -80,6 +80,7 @@ $OUT .= '\vspace{-\extracouponspace}'; $OUT .= '\rule[0.5em]{\textwidth}{\footrulewidth}\\\\'; $OUT .= $coupon; + $OUT .= '\vspace{'. $couponfootsep. '}' if defined($couponfootsep); } ''; --@] [@-- $smallerfooter ? '\scriptsize{' : '\small{' --@] @@ -108,10 +109,10 @@ \returninset \makebox{ \begin{tabular}{ll} - \includegraphics{[@-- $logo_file --@]} & + \includegraphics{[@-- $logo_file --@]} & [@-- $verticalreturnaddress ? '\\\\' : '' --@] \begin{minipage}[b]{5.5cm} [@-- $returnaddress --@] - \end{minipage} + \end{minipage}\\ \end{tabular} } } @@ -201,7 +202,7 @@ \addressinset \rule{0.5cm}{0cm} \makebox{ \begin{minipage}[t]{7.0cm} -\vspace{0.25cm} +\vspace{[@-- defined($addresssep) ? $addresssep : '0.25cm' --@]} \textbf{[@-- $payname --@]}\\ \addressline{[@-- $company --@]} \addressline{[@-- $address1 --@]} @@ -242,7 +243,7 @@ Terms: [@-- $terms --@]\\ $OUT .= '\large\textsc{'. $section->{'pretotal'}. '}\\\\'; $OUT .= '\\end{flushright}'; } - $OUT .= '\pagebreak' if $section{'post_total'}; + $OUT .= '\pagebreak' if $section->{'post_total'}; unless ($section->{'summarized'} ) { $OUT .= '\captionsetup{singlelinecheck=false,justification=raggedright,font={Large,sc,bf}}'; $OUT .= '\ifthenelse{\equal{\thepage}{1}}{\setlength{\LTextracouponspace}{\extracouponspace}}{\setlength{\LTextracouponspace}{0pt}}'