From 94cf6eb75f11879269c1c6f3dc70547ef414acd6 Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 9 Feb 2007 04:54:09 +0000 Subject: [PATCH] quick hack to import rates for landel --- bin/import-county-tax-rates | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 bin/import-county-tax-rates diff --git a/bin/import-county-tax-rates b/bin/import-county-tax-rates new file mode 100755 index 000000000..05798c9a2 --- /dev/null +++ b/bin/import-county-tax-rates @@ -0,0 +1,30 @@ +#!/usr/bin/perl +# +# import-county-tax-rates username state country ) { + my($tax, $county) = split(','); #half-ass CSV parser + + my $cust_main_county = new FS::cust_main_county { + 'county' => $county, + 'state' => $state, + 'country' => $country, + 'tax' => $tax, + }; + + my $error = $cust_main_county->insert; + #my $error = $cust_main_county->check; + die $error if $error; + +} -- 2.11.0