summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2004-01-21 22:00:34 +0000
committerivan <ivan>2004-01-21 22:00:34 +0000
commite202198ab2a701ac6f6bfcfb67171b97801ab976 (patch)
treec116dbe869f42d4bab234f13b4a71f365d3b955e
parent0c0cb89fbf23c575cab2cac5519b6051288a7d3f (diff)
fix multi-page typeset invoices
-rw-r--r--FS/FS/Conf.pm7
-rw-r--r--FS/FS/cust_bill.pm1
-rw-r--r--conf/invoice_latex6
-rw-r--r--conf/invoice_latexsmallfooter1
4 files changed, 12 insertions, 3 deletions
diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm
index 467a856..ec1bf55 100644
--- a/FS/FS/Conf.pm
+++ b/FS/FS/Conf.pm
@@ -490,6 +490,13 @@ httemplate/docs/config.html
'type' => 'textarea',
},
+ {
+ 'key' => 'invoice_latexsmallfooter',
+ 'section' => 'billing',
+ 'description' => 'Optional small footer for multi-page LaTeX typeset PostScript invoices.',
+ 'type' => 'textarea',
+ },
+
{
'key' => 'invoice_default_terms',
'section' => 'billing',
diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm
index 3c941ca..9f1d7a6 100644
--- a/FS/FS/cust_bill.pm
+++ b/FS/FS/cust_bill.pm
@@ -941,6 +941,7 @@ sub print_latex {
'zip' => _latex_escape($cust_main->zip),
'country' => _latex_escape($cust_main->country),
'footer' => join("\n", $conf->config('invoice_latexfooter') ),
+ 'smallfooter' => $conf->config('invoice_latexsmallfooter'),
'quantity' => 1,
'terms' => $conf->config('invoice_default_terms') || 'Payable upon receipt',
#'notes' => join("\n", $conf->config('invoice_latexnotes') ),
diff --git a/conf/invoice_latex b/conf/invoice_latex
index b286793..f63ab32 100644
--- a/conf/invoice_latex
+++ b/conf/invoice_latex
@@ -85,12 +85,12 @@ Invoice date & & Invoice number \\
%% Header & footer changes for subsequent pages
%
\afterpage{ \fancyfoot[RO,RE]{\small{\thepage\ of \pageref{LastPage}}} }
-\afterpage{ \fancyfoot[CO,CE]{\small{$org_company}} }
+\afterpage{ \fancyfoot[CO,CE]{\small{$smallfooter}} }
\afterpage{ \fancyhead[LO,LE]{\small{}} }
\afterpage{ \fancyhead[RO,RE]{\small{
\begin{tabular}{ll}
-Date & Account number\\
-\textbf{ $date_of_bill} & \textbf{ $customer_ref}\\
+Invoice date & Invoice number\\
+\textbf{$date} & \textbf{$invnum}\\
\end{tabular}}} }
%
%
diff --git a/conf/invoice_latexsmallfooter b/conf/invoice_latexsmallfooter
new file mode 100644
index 0000000..527c356
--- /dev/null
+++ b/conf/invoice_latexsmallfooter
@@ -0,0 +1 @@
+Ivan Kohler~~~Freeside - open-source billing