From 06d46a675063e8a299345c9a2313ac29b9025d74 Mon Sep 17 00:00:00 2001 From: jeff Date: Wed, 23 Jun 2010 08:37:46 +0000 Subject: add config variables to position invoice addresses in envelope windows RT8384 --- conf/invoice_latex | 15 ++++++++------- conf/invoice_latexcoupon | 12 ++++++------ 2 files changed, 14 insertions(+), 13 deletions(-) (limited to 'conf') diff --git a/conf/invoice_latex b/conf/invoice_latex index d37eeba..29a901d 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 --@]} diff --git a/conf/invoice_latexcoupon b/conf/invoice_latexcoupon index 327c121..a4ccddd 100644 --- a/conf/invoice_latexcoupon +++ b/conf/invoice_latexcoupon @@ -3,13 +3,13 @@ Detach and return this remittance form with your your payment.\\ \begin{tabular}{ll} \returninset \begin{tabular}{ll} - \makebox{ \includegraphics{[@-- $logo_file --@]}} & + \makebox{ \includegraphics{[@-- $logo_file --@]}} & [@-- $verticalreturnaddress ? '\\\\' : '' --@] \begin{minipage}[b]{5.5cm} [@-- $returnaddress --@] - \end{minipage} + \end{minipage}\\ \end{tabular}& \begin{tabular}{r@{: }lr} -Invoice date & \textbf{[@-- $date --@]} & \multirow{4}*{ +Invoice date & \textbf{[@-- $date --@]} & \multirow{4}*{[@-- $verticalreturnaddress ? '\\rule{1.5cm}{0cm}' : '' --@] \makebox{ \begin{minipage}[t]{7.0cm} \textbf{[@-- $payname --@]}\\ @@ -21,15 +21,15 @@ Invoice date & \textbf{[@-- $date --@]} & \multirow{4}*{ \end{minipage}}}\\ Customer\#& \textbf{[@-- $custnum --@]} & \\ Total Due & \textbf{[@-- $balance --@]} & \\ -\rule{0pt}{2.25em}Amount Enclosed & \rule{2cm}{1pt}& \\ +\rule{0pt}{[@-- defined($amountenclosedsep) ? $amountenclosedsep : '2.25em' --@]}Amount Enclosed & \rule{2cm}{1pt}& \\ \end{tabular}\\ -\rule{0pt}{1cm} &\\ +\rule{0pt}{[@-- defined($coupontoaddresssep) ? $coupontoaddresssep : '1cm' --@]} &\\ \end{tabular}\\ \begin{tabular}{ll} \addressinset \rule{0.5cm}{0cm} & \makebox{ \begin{minipage}[t]{7.0cm} -[@-- $returnaddress --@] +[@-- $addcompanytoaddress ? $company_name. '\\\\' : '' --@][@-- $returnaddress --@] \end{minipage}} \hfill \end{tabular}\\ -- cgit v1.1