3 # import-county-tax-rates username state country <filename.csv
4 # example: import-county-tax-rates ivan CA US <taxes.csv
6 # rates.csv: taxrate,county
8 use FS::UID qw(adminsuidsetup);
9 use FS::cust_main_county;
14 my($state, $country) = (shift, shift);
17 my($tax, $county) = split(','); #half-ass CSV parser
19 my $cust_main_county = new FS::cust_main_county {
22 'country' => $country,
26 my $error = $cust_main_county->insert;
27 #my $error = $cust_main_county->check;