From 2e93aa2c2371022e78d45688bfb675fbcca73c63 Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Tue, 4 Dec 2018 16:33:14 -0500 Subject: RT# 81822 - cleanup footer display when coupon on top --- conf/invoice_latex | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/conf/invoice_latex b/conf/invoice_latex index 885be3d..cd36450 100644 --- a/conf/invoice_latex +++ b/conf/invoice_latex @@ -73,23 +73,16 @@ \renewcommand{\headrulewidth}{0pt} \renewcommand{\footrulewidth}{1pt} +\renewcommand{\footrule}{ [@-- - if ($couponlocation eq "top") { - if ($coupon) { - '\makeatletter - \newcommand\ifpageone{ - \ifnum\value{page}=1 - \expandafter\@firstoftwo - \else - \expandafter\@secondoftwo - \fi} - \makeatother'; - } + $coupon ? '\ifthenelse{\equal{\thepage}{1}}' : ''; +--@] + { } - else { - '\renewcommand{\footrule}{\ifthenelse{\equal{\thepage}{1}}{}{ \vbox to 0pt{\rule{\headwidth}{\footrulewidth}\vss} } }'; + { + \vbox to 0pt{\rule{\headwidth}{\footrulewidth}\vss} } ---@] +} % Adjust the inset of the mailing address \newcommand{\addressinset}[1][]{\hspace{1.0cm}} @@ -123,6 +116,9 @@ (defined($couponfootsep) ? $couponfootsep : '0.2in') . '}'; } + elsif ($coupon && $couponlocation eq "top") { + $OUT .= '\vspace{-\extracouponspace}'; + } ''; --@] [@-- $smallerfooter ? '\scriptsize{' : '\small{' --@] [@-- $footer --@] -- cgit v1.1