fix multi-page typeset invoices
authorivan <ivan>
Wed, 21 Jan 2004 22:00:34 +0000 (22:00 +0000)
committerivan <ivan>
Wed, 21 Jan 2004 22:00:34 +0000 (22:00 +0000)
FS/FS/Conf.pm
FS/FS/cust_bill.pm
conf/invoice_latex
conf/invoice_latexsmallfooter [new file with mode: 0644]

index 467a856..ec1bf55 100644 (file)
@@ -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',
index 3c941ca..9f1d7a6 100644 (file)
@@ -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') ),
index b286793..f63ab32 100644 (file)
@@ -85,12 +85,12 @@ Invoice date & & Invoice number \\
 %%     Header & footer changes for subsequent pages\r
 %\r
 \afterpage{ \fancyfoot[RO,RE]{\small{\thepage\ of \pageref{LastPage}}} }\r
-\afterpage{ \fancyfoot[CO,CE]{\small{$org_company}} }\r
+\afterpage{ \fancyfoot[CO,CE]{\small{$smallfooter}} }\r
 \afterpage{ \fancyhead[LO,LE]{\small{}} }\r
 \afterpage{ \fancyhead[RO,RE]{\small{\r
 \begin{tabular}{ll}\r
-Date & Account number\\\r
-\textbf{ $date_of_bill} & \textbf{ $customer_ref}\\\r
+Invoice date & Invoice number\\\r
+\textbf{$date} & \textbf{$invnum}\\\r
 \end{tabular}}} }\r
 %\r
 %\r
diff --git a/conf/invoice_latexsmallfooter b/conf/invoice_latexsmallfooter
new file mode 100644 (file)
index 0000000..527c356
--- /dev/null
@@ -0,0 +1 @@
+Ivan Kohler~~~Freeside - open-source billing