X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2FTaxEngine%2Fcompliance_solutions.pm;h=c21234ee73fbcba9f2dd3347bc6cece0f4eed787;hp=92ca2ce024070a68176bb4dd64172356c209fe63;hb=147c94865852a93bf192ef15e931e456d487b69b;hpb=0c7672759a3254c4bd7317edb23f40d8880d99d6 diff --git a/FS/FS/TaxEngine/compliance_solutions.pm b/FS/FS/TaxEngine/compliance_solutions.pm index 92ca2ce02..c21234ee7 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;