diff options
author | ivan <ivan> | 2004-01-21 22:00:34 +0000 |
---|---|---|
committer | ivan <ivan> | 2004-01-21 22:00:34 +0000 |
commit | e202198ab2a701ac6f6bfcfb67171b97801ab976 (patch) | |
tree | c116dbe869f42d4bab234f13b4a71f365d3b955e | |
parent | 0c0cb89fbf23c575cab2cac5519b6051288a7d3f (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 | ||||
-rw-r--r-- | conf/invoice_latexsmallfooter | 1 |
4 files changed, 12 insertions, 3 deletions
diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index 467a856c1..ec1bf5574 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 3c941ca6f..9f1d7a6fc 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 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}}} }
%
%
diff --git a/conf/invoice_latexsmallfooter b/conf/invoice_latexsmallfooter new file mode 100644 index 000000000..527c356f5 --- /dev/null +++ b/conf/invoice_latexsmallfooter @@ -0,0 +1 @@ +Ivan Kohler~~~Freeside - open-source billing |