From 0e6c9924484c4400f36790dd5281368851192e97 Mon Sep 17 00:00:00 2001 From: rsiddall Date: Thu, 28 Jun 2007 17:16:17 +0000 Subject: [PATCH] Patch to add payby, payinfo and invoicing_list to invoice data so you can display on invoice. --- install/rpm/freeside-1.5.7.invfields.patch | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 install/rpm/freeside-1.5.7.invfields.patch diff --git a/install/rpm/freeside-1.5.7.invfields.patch b/install/rpm/freeside-1.5.7.invfields.patch new file mode 100644 index 000000000..9cf5c6673 --- /dev/null +++ b/install/rpm/freeside-1.5.7.invfields.patch @@ -0,0 +1,35 @@ +diff -Naur freeside-1.5.7.orig/FS/FS/cust_bill.pm freeside-1.5.7/FS/FS/cust_bill.pm +--- freeside-1.5.7.orig/FS/FS/cust_bill.pm 2005-07-09 11:41:18.000000000 -0400 ++++ freeside-1.5.7/FS/FS/cust_bill.pm 2006-01-06 17:52:12.563614655 -0500 +@@ -1269,6 +1269,11 @@ + # && $self->printed > 0 + # ); + ++ #and payment and invoicing info for notes ++ $FS::cust_bill::_template::payby = $cust_main->payby; ++ $FS::cust_bill::_template::payinfo = $cust_main->payinfo; ++ $FS::cust_bill::_template::invemails = join(', ', $cust_main->invoicing_list); ++ + #and subroutine for the template + sub FS::cust_bill::_template::invoice_lines { + my $lines = shift || scalar(@buf); +@@ -1376,6 +1381,9 @@ + 'returnaddress' => $returnaddress, + 'quantity' => 1, + 'terms' => $conf->config('invoice_default_terms') || 'Payable upon receipt', ++ 'payby' => _latex_escape($cust_main->payby), ++ 'payinfo' => _latex_escape($cust_main->payinfo), ++ 'invemails' => _latex_escape(join(', ', $cust_main->invoicing_list)), + #'notes' => join("\n", $conf->config('invoice_latexnotes') ), + 'conf_dir' => "$FS::UID::conf_dir/conf.$FS::UID::datasrc", + ); +@@ -1775,6 +1783,9 @@ + 'cid' => $cid, + 'template' => $template, + # 'conf_dir' => "$FS::UID::conf_dir/conf.$FS::UID::datasrc", ++ 'payby' => encode_entities($cust_main->payby), ++ 'payinfo' => encode_entities($cust_main->payinfo), ++ 'invemails' => encode_entities(join(', ', $cust_main->invoicing_list)), + ); + + $invoice_data{'returnaddress'} = -- 2.20.1