diff options
author | Ivan Kohler <ivan@freeside.biz> | 2017-09-21 15:52:14 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2017-09-21 15:52:14 -0700 |
commit | 11b7e1145d378aea6180d110becb23219350d397 (patch) | |
tree | 21da7af6e22516e04727f1d3080d9eae8704f5c6 /FS/FS/TaxEngine | |
parent | b3be12cf4ebf8d160b3531153eaaf09bf011f8d0 (diff) |
compliance solutions, RT#77676
Diffstat (limited to 'FS/FS/TaxEngine')
-rw-r--r-- | FS/FS/TaxEngine/compliance_solutions.pm | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/FS/FS/TaxEngine/compliance_solutions.pm b/FS/FS/TaxEngine/compliance_solutions.pm index 92ca2ce..c21234e 100644 --- a/FS/FS/TaxEngine/compliance_solutions.pm +++ b/FS/FS/TaxEngine/compliance_solutions.pm @@ -263,7 +263,7 @@ sub make_taxlines { # create a tax rate location if there isn't one yet my $taxname = $tax_data->{descript}; my $tax_rate = FS::tax_rate->new({ - data_vendor => 'compliance solutions', + data_vendor => 'compliance_solutions', taxname => $taxname, taxclassnum => '', taxauth => $tax_data->{'taxauthtype'}, # federal / state / city / district @@ -277,13 +277,14 @@ sub make_taxlines { $tax_rate = $tax_rate->replace_old; my $tax_rate_location = FS::tax_rate_location->new({ - data_vendor => 'compliance solutions', + data_vendor => 'compliance_solutions', + geocode => $tax_data->{'geocode'}, state => $tax_data->{'state'}, country => $tax_data->{'country'}, - geocode => $tax_data->{'geocode'}, }); $error = $tax_rate_location->find_or_insert; - die "error inserting tax_rate_location record: $error\n" + die 'error inserting tax_rate_location record for '. $tax_data->{state}. + '/'. $tax_data->{country}. ' ('. $tax_data->{'geocode'}. "): $error\n" if $error; $tax_rate_location = $tax_rate_location->replace_old; |