[freeside-commits] freeside/install/rpm freeside-1.5.7.invfields.patch, NONE, 1.1.2.1
Richard Siddall
rsiddall at wavetail.420.am
Thu Jun 28 10:16:21 PDT 2007
Update of /home/cvs/cvsroot/freeside/install/rpm
In directory wavetail:/tmp/cvs-serv29536
Added Files:
Tag: FREESIDE_1_5_BRANCH
freeside-1.5.7.invfields.patch
Log Message:
Patch to add payby, payinfo and invoicing_list to invoice data so you can display on invoice.
--- NEW FILE: freeside-1.5.7.invfields.patch ---
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'} =
More information about the freeside-commits
mailing list