diff options
| author | Christopher Burger <burgerc@freeside.biz> | 2018-12-04 16:33:14 -0500 |
|---|---|---|
| committer | Christopher Burger <burgerc@freeside.biz> | 2018-12-04 16:35:33 -0500 |
| commit | 059b11d530d86f5fe60c069bb2b7460989b5909a (patch) | |
| tree | 63ea8a6cbab5f3b9d6a2e33ef2ce961066c83955 | |
| parent | eb3541f27fdb17dc1582af335c641b0185869c41 (diff) | |
RT# 81822 - cleanup footer display when coupon on top
| -rw-r--r-- | conf/invoice_latex | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/conf/invoice_latex b/conf/invoice_latex index 885be3d08..cd36450f3 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 --@] |
