summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Burger <burgerc@freeside.biz>2018-12-04 16:33:14 -0500
committerChristopher Burger <burgerc@freeside.biz>2018-12-04 16:33:14 -0500
commit2e93aa2c2371022e78d45688bfb675fbcca73c63 (patch)
treef13aa9a683d32c79ebca0bbe2ee371674dbad542
parent8ddf2ae7b5e02463c87599186f0279b86ddaeaac (diff)
RT# 81822 - cleanup footer display when coupon on top
-rw-r--r--conf/invoice_latex24
1 files 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 --@]