[freeside-commits] freeside/FS/FS cust_bill.pm,1.213,1.214
Jeff Finucane,420,,
jeff at wavetail.420.am
Mon Jun 23 08:37:17 PDT 2008
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv22646/FS/FS
Modified Files:
cust_bill.pm
Log Message:
invoice service address modifications
Index: cust_bill.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_bill.pm,v
retrieving revision 1.213
retrieving revision 1.214
diff -u -d -r1.213 -r1.214
--- cust_bill.pm 20 Jun 2008 05:47:33 -0000 1.213
+++ cust_bill.pm 23 Jun 2008 15:37:15 -0000 1.214
@@ -1853,16 +1853,18 @@
'unitprices' => $conf->exists('invoice-unitprice'),
);
+ my $countrydefault = $conf->config('countrydefault') || 'US';
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{'ship_country'} = ''
+ if ( $invoice_data{'ship_country'} eq $countrydefault );
$invoice_data{'cid'} = $params{'cid'}
if $params{'cid'};
- my $countrydefault = $conf->config('countrydefault') || 'US';
if ( $cust_main->country eq $countrydefault ) {
$invoice_data{'country'} = '';
} else {
More information about the freeside-commits
mailing list