From: ivan Date: Wed, 21 Jan 2004 22:00:34 +0000 (+0000) Subject: fix multi-page typeset invoices X-Git-Tag: freeside_1_5_0pre4^2~68 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=e202198ab2a701ac6f6bfcfb67171b97801ab976;p=freeside.git fix multi-page typeset invoices --- 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