<& /elements/header.html,'Batch Tax Rate Import' &> Import a CSV file set containing tax rate records.

<& /elements/form-file_upload.html, 'name' => 'TaxRateUpload', 'action' => 'process/tax-import.cgi', 'fields' => [ 'format', 'reload' ], 'num_files' => $vendor_info{$data_vendor}->{num_files}, 'message' => 'Tax rates imported', 'onsubmit' => "document.TaxRateUpload.submitButton.disabled=true;", &> <& /elements/table-grid.html &> Format Replace existing data from this vendor <& /elements/file-upload.html, 'field' => $vendor_info{$data_vendor}->{field}, 'label' => $vendor_info{$data_vendor}->{label}, 'debug' => 0, &> <% include('/elements/footer.html') %> <%init> die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Import'); my $conf = FS::Conf->new; my $data_vendor = $conf->config('tax_data_vendor'); my %vendor_info = ( cch => { 'num_files' => 6, 'formats' => [ 'cch' => 'CCH import (CSV)', 'cch-fixed' => 'CCH import (fixed length)' ], 'field' => [ 'geocodefile', 'codefile', 'plus4file', 'zipfile', 'txmatrixfile', 'detailfile', ], 'label' => [ 'geocode filename', 'code filename', 'plus4 filename', 'zip filename', 'txmatrix filename', 'detail filename', ], }, billsoft => { 'num_files' => 1, 'formats' => [ 'billsoft-pcode' => 'Billsoft PCodes', 'billsoft-taxclass' => 'Tax classes', 'billsoft-taxproduct' => 'Tax products' ], 'field' => [ 'file' ], 'label' => [ 'Filename' ], }, );