diff options
author | ivan <ivan> | 2004-01-21 22:00:43 +0000 |
---|---|---|
committer | ivan <ivan> | 2004-01-21 22:00:43 +0000 |
commit | 942e2c957a8e4167de046b2ad79523cf6b8308c8 (patch) | |
tree | 2873e6199f76ba8470242cbd861cf0b24632dc90 | |
parent | a851e7c263db2e7040bd2e29a9bf44b80bd8eba9 (diff) |
fix multi-page typeset invoices
-rw-r--r-- | FS/FS/Conf.pm | 7 | ||||
-rw-r--r-- | FS/FS/cust_bill.pm | 1 | ||||
-rw-r--r-- | conf/invoice_latex | 6 |
3 files changed, 11 insertions, 3 deletions
diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index dbdb7d760..709d1030b 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -497,6 +497,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 be2948f64..433ef7420 100644 --- a/FS/FS/cust_bill.pm +++ b/FS/FS/cust_bill.pm @@ -1333,6 +1333,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 b28679344..f63ab324f 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}}} }
%
%
|