diff options
author | Mark Wells <mark@freeside.biz> | 2016-07-21 13:47:42 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2016-07-21 14:00:08 -0700 |
commit | 78a1f87b26cad0687ed176ab0a6e0028f0b80e5c (patch) | |
tree | eb8ab3082ad435d02d71eebbe661a2fc23d9bd5c /FS/FS/TaxEngine | |
parent | 9c6ec58a41aaf73e7d900ad19af5478bcc26a4a5 (diff) |
fix whitespace and case correctness of city names, #71501
Diffstat (limited to 'FS/FS/TaxEngine')
-rw-r--r-- | FS/FS/TaxEngine/internal.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/FS/FS/TaxEngine/internal.pm b/FS/FS/TaxEngine/internal.pm index db7010c..3e3e7e5 100644 --- a/FS/FS/TaxEngine/internal.pm +++ b/FS/FS/TaxEngine/internal.pm @@ -28,8 +28,10 @@ sub add_sale { push @{ $self->{items} }, $cust_bill_pkg; - my @loc_keys = qw( district city county state country ); - my %taxhash = map { $_ => $location->get($_) } @loc_keys; + my %taxhash = map { $_ => $location->get($_) } + qw( district county state country ); + # city names in cust_main_county are uppercase + $taxhash{'city'} = uc($location->get('city')); $taxhash{'taxclass'} = $part_item->taxclass; |