diff options
author | jeff <jeff> | 2008-06-23 15:36:25 +0000 |
---|---|---|
committer | jeff <jeff> | 2008-06-23 15:36:25 +0000 |
commit | 3c0c02570de780a7afe0b6f240306a6b82b3e41f (patch) | |
tree | 37f635212c402261a804152a99f62a65458d731a /FS | |
parent | 71436e7f8df90c5eaea6178a829a7685b22e4062 (diff) |
invoice service address modifications
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/cust_bill.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm index 006892c2d..c29bb4209 100644 --- a/FS/FS/cust_bill.pm +++ b/FS/FS/cust_bill.pm @@ -1820,13 +1820,15 @@ sub print_latex { '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 { |