[freeside-commits] freeside/FS/FS Conf.pm, 1.230, 1.231 Conf_compat17.pm, 1.4, 1.5 cust_bill.pm, 1.206, 1.207
Jeff Finucane,420,,
jeff at wavetail.420.am
Wed Jun 4 06:26:59 PDT 2008
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv12301/FS/FS
Modified Files:
Conf.pm Conf_compat17.pm cust_bill.pm
Log Message:
service address on invoice
Index: Conf_compat17.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Conf_compat17.pm,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- Conf_compat17.pm 2 Jun 2008 11:16:09 -0000 1.4
+++ Conf_compat17.pm 4 Jun 2008 13:26:56 -0000 1.5
@@ -1940,6 +1940,13 @@
},
{
+ 'key' => 'invoice-ship_address',
+ 'section' => 'billing',
+ 'description' => 'Enable this switch to include the ship address on the invoice.',
+ 'type' => 'checkbox',
+ },
+
+ {
'key' => 'batch-enable',
'section' => 'billing',
'description' => 'Enable credit card and/or ACH batching - leave disabled for real-time installations.',
Index: Conf.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Conf.pm,v
retrieving revision 1.230
retrieving revision 1.231
diff -u -d -r1.230 -r1.231
--- Conf.pm 2 Jun 2008 11:16:09 -0000 1.230
+++ Conf.pm 4 Jun 2008 13:26:56 -0000 1.231
@@ -1868,6 +1868,13 @@
},
{
+ 'key' => 'invoice-ship_address',
+ 'section' => 'billing',
+ 'description' => 'Enable this switch to include the ship address on the invoice.',
+ 'type' => 'checkbox',
+ },
+
+ {
'key' => 'batch-enable',
'section' => 'billing',
'description' => 'Enable credit card and/or ACH batching - leave disabled for real-time installations.',
Index: cust_bill.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_bill.pm,v
retrieving revision 1.206
retrieving revision 1.207
diff -u -d -r1.206 -r1.207
--- cust_bill.pm 3 Jun 2008 21:06:21 -0000 1.206
+++ cust_bill.pm 4 Jun 2008 13:26:56 -0000 1.207
@@ -1826,6 +1826,7 @@
'date' => time2str($date_format, $self->_date),
'today' => time2str('%b %o, %Y', $today),
'agent' => &$escape_function($cust_main->agent->agent),
+ 'agent' => &$escape_function($cust_main->agent_custid),
'payname' => &$escape_function($cust_main->payname),
'company' => &$escape_function($cust_main->company),
'address1' => &$escape_function($cust_main->address1),
@@ -1842,8 +1843,15 @@
'conf_dir' => "$FS::UID::conf_dir/conf.$FS::UID::datasrc",
'page' => 1,
'total_pages' => 1,
+ 'ship_enable' => $conf->exists('invoice-ship_address'),
);
+ my $prefix = $cust_main->has_ship_address ? 'ship_' : '';
+ foreach ( qw( contact company address1 address2 city state zip country fax) ){
+ my $method = $prefix.$_;
+ $invoice_data{"ship_$_"} = _latex_escape($cust_main->$method);
+ }
+
$invoice_data{'cid'} = $params{'cid'}
if $params{'cid'};
More information about the freeside-commits
mailing list