[freeside-commits] freeside/conf invoice_latexcoupon, NONE, 1.1.2.2 invoice_latex, 1.11.4.3, 1.11.4.4
Jeff Finucane,420,,
jeff at wavetail.420.am
Mon Jun 2 04:17:21 PDT 2008
- Previous message: [freeside-commits] freeside/FS/FS Conf.pm, 1.229, 1.230 Conf_compat17.pm, 1.3, 1.4 cust_bill.pm, 1.204, 1.205
- Next message: [freeside-commits] freeside/FS/FS Conf.pm, 1.180.2.25, 1.180.2.26 cust_bill.pm, 1.163.2.27, 1.163.2.28
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/conf
In directory wavetail.420.am:/tmp/cvs-serv1178/conf
Modified Files:
Tag: FREESIDE_1_7_BRANCH
invoice_latex
Added Files:
Tag: FREESIDE_1_7_BRANCH
invoice_latexcoupon
Log Message:
typeset tear-off remittance coupon
Index: invoice_latex
===================================================================
RCS file: /home/cvs/cvsroot/freeside/conf/invoice_latex,v
retrieving revision 1.11.4.3
retrieving revision 1.11.4.4
diff -u -d -r1.11.4.3 -r1.11.4.4
--- invoice_latex 19 May 2008 22:31:16 -0000 1.11.4.3
+++ invoice_latex 2 Jun 2008 11:17:12 -0000 1.11.4.4
@@ -19,7 +19,7 @@
\documentclass[letterpaper]{article}
-\usepackage{fancyhdr,lastpage,ifthen,longtable,afterpage}
+\usepackage{fancyhdr,lastpage,ifthen,longtable,afterpage,multirow,bigstrut}
\usepackage{graphicx} % required for logo graphic
\addtolength{\voffset}{-0.0cm} % top margin to top of header
@@ -38,6 +38,19 @@
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{1pt}
+\renewcommand{\footrule}{
+[@--
+ $coupon ? '\ifthenelse{\equal{\thepage}{1}}' : '';
+--@]
+ {
+ }
+ {
+ \vbox to 0pt{\rule{\headwidth}{\footrulewidth}\vss}
+ }
+}
+
+\newcommand{\extracouponspace}{4.8cm}
+
% Adjust the inset of the mailing address
\newcommand{\addressinset}[1][]{\hspace{1.0cm}}
@@ -60,9 +73,16 @@
\fancyfoot[C]{
\ifthenelse{\equal{\thepage}{1}}
{ % First page
- \small{
+[@--
+ if ($coupon) {
+ $OUT .= '\vspace{-\extracouponspace}';
+ $OUT .= '\rule[0.5em]{\textwidth}{\footrulewidth}\\\\';
+ $OUT .= $coupon;
+ }
+ '';
+--@] \small{
[@-- $footer --@]
- }
+ }[@-- $coupon ? '\vspace{\extracouponspace}' : '' --@]
}
{ % ... pages
\small{
@@ -165,6 +185,7 @@
%
%
%
+[@-- $coupon ? '\enlargethispage{-\extracouponspace}' : '' --@]
\begin{tabular}{ll}
\addressinset \rule{0cm}{0cm} &
\makebox{
--- NEW FILE: invoice_latexcoupon ---
Detach and return this remittance form with your your payment.\\
\begin{tabular}{ll}
\returninset
\begin{tabular}{ll}
\makebox{ \includegraphics{[@-- $conf_dir --@]/logo.eps}} &
\begin{minipage}[b]{5.5cm}
[@-- $returnaddress --@]
\end{minipage}
\end{tabular}&
\begin{tabular}{r@{: }lr}
Invoice date & \textbf{[@-- $date --@]} & \multirow{4}*{
\makebox{
\begin{minipage}[t]{5.0cm}
\textbf{[@-- $payname --@]}\\
\addressline{[@-- $company --@]}
\addressline{[@-- $address1 --@]}
\addressline{[@-- $address2 --@]}
\addressline{[@-- $city --@], [@-- $state --@]~~[@-- $zip --@]}
\addressline{[@-- $country --@]}
\end{minipage}}}\\
Customer\#& \textbf{[@-- $custnum --@]} & \\
Total Due & \textbf{[@-- $balance --@]} & \\
\rule{0pt}{2.25em}Amount Enclosed & \rule{2cm}{1pt}& \\
\end{tabular}\\
\rule{0pt}{1cm} &\\
\begin{tabular}{ll}
\addressinset \rule{0.5cm}{0cm} &
\makebox{
\begin{minipage}[t]{5.0cm}
[@-- $returnaddress --@]
\end{minipage}}
\end{tabular}\\
\end{tabular}\\
- Previous message: [freeside-commits] freeside/FS/FS Conf.pm, 1.229, 1.230 Conf_compat17.pm, 1.3, 1.4 cust_bill.pm, 1.204, 1.205
- Next message: [freeside-commits] freeside/FS/FS Conf.pm, 1.180.2.25, 1.180.2.26 cust_bill.pm, 1.163.2.27, 1.163.2.28
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list