X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=conf%2Finvoice_latex;fp=conf%2Finvoice_latex;h=cd36450f30fa4b2aedc245ebec125c3f26618f42;hp=885be3d085e03180b1385a9746b45c9d9d4e2e3a;hb=2e93aa2c2371022e78d45688bfb675fbcca73c63;hpb=8ddf2ae7b5e02463c87599186f0279b86ddaeaac 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 --@]