1 <& /elements/header.html,'Batch Tax Rate Import' &>
3 Import a CSV file set containing tax rate records.
6 <& /elements/form-file_upload.html,
7 'name' => 'TaxRateUpload',
8 'action' => 'process/tax-import.cgi',
9 'fields' => [ 'format', 'reload' ],
10 'num_files' => $vendor_info{$data_vendor}->{num_files},
11 'message' => 'Tax rates imported',
12 'onsubmit' => "document.TaxRateUpload.submitButton.disabled=true;",
15 <& /elements/table-grid.html &>
18 <TH ALIGN="right">Format</TH>
20 <SELECT NAME="format">
21 % my @formats = @{ $vendor_info{$data_vendor}->{formats} };
23 <OPTION VALUE="<% shift @formats %>"><% shift @formats %></OPTION>
30 <TH ALIGN="right">Replace existing data from this vendor</TH>
32 <INPUT NAME="reload" TYPE="checkbox" VALUE="1" CHECKED>
36 <& /elements/file-upload.html,
37 'field' => $vendor_info{$data_vendor}->{field},
38 'label' => $vendor_info{$data_vendor}->{label},
43 <TD COLSPAN=2 ALIGN="center" STYLE="padding-top:6px">
44 <INPUT TYPE = "submit"
47 VALUE = "Import CSV files"
56 <% include('/elements/footer.html') %>
60 unless $FS::CurrentUser::CurrentUser->access_right('Import');
62 my $conf = FS::Conf->new;
63 my $data_vendor = $conf->config('tax_data_vendor');
68 'formats' => [ 'cch' => 'CCH import (CSV)',
69 'cch-fixed' => 'CCH import (fixed length)' ],
70 'field' => [ 'geocodefile',
77 'label' => [ 'geocode filename',
87 'formats' => [ 'billsoft-pcode' => 'Billsoft PCodes',
88 'billsoft-taxclass' => 'Tax classes',
89 'billsoft-taxproduct' => 'Tax products' ],
90 'field' => [ 'file' ],
91 'label' => [ 'Filename' ],