[freeside-commits] freeside/FS/FS cust_bill.pm, 1.163.2.33, 1.163.2.34

Jeff Finucane,420,, jeff at wavetail.420.am
Mon Jun 23 08:36:27 PDT 2008


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv22547/FS/FS

Modified Files:
      Tag: FREESIDE_1_7_BRANCH
	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.163.2.33
retrieving revision 1.163.2.34
diff -u -d -r1.163.2.33 -r1.163.2.34
--- cust_bill.pm	20 Jun 2008 05:47:19 -0000	1.163.2.33
+++ cust_bill.pm	23 Jun 2008 15:36:24 -0000	1.163.2.34
@@ -1820,13 +1820,15 @@
     '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 );
 
-  my $countrydefault = $conf->config('countrydefault') || 'US';
   if ( $cust_main->country eq $countrydefault ) {
     $invoice_data{'country'} = '';
   } else {



More information about the freeside-commits mailing list