1 <% include("/elements/header.html",'Batch Tax Rate Import') %>
3 Import a CSV file set containing tax rate records.
6 <% include( '/elements/progress-init.html',
8 [ 'format', 'uploaded_files' ],
9 'process/tax-import.cgi',
10 { 'message' => 'Tax rates imported' },
16 function gotLoaded(success, message) {
18 var uploaded = document.getElementById('uploaded_files');
19 var a = uploaded.value.split(',');
20 if (uploaded.value.split(',').length == 4){
23 var p = document.getElementById('uploadError');
24 p.innerHTML='<FONT SIZE="+1" COLOR="#ff0000">Error: '+message+'</FONT><BR><BR>';
25 p.style='display:visible';
33 <div style="display:none:" id="uploadError"></div>
34 <FORM NAME="TaxRateUpload" ACTION="<% $fsurl %>misc/file-upload.html" METHOD="post" ENCTYPE="multipart/form-data" onsubmit="return doUpload(this, gotLoaded )">
36 <% &ntable("#cccccc", 2) %>
38 <TH ALIGN="right">Format</TH>
40 <SELECT NAME="format">
41 <OPTION VALUE="cch-update" SELECTED>CCH update
42 <OPTION VALUE="cch">CCH initial import
47 <% include('/elements/file-upload.html', 'field' => [ 'codefile',
52 'label' => [ 'code CSV filename',
54 'txmatrix CSV filename',
55 'detail CSV filename',
57 'callback' => 'gotLoaded',
62 <TR><TD COLSPAN=2 ALIGN="center" STYLE="padding-top:6px"><INPUT TYPE="submit" VALUE="Import CSV files" onClick="document.TaxRateUpload.submit.disabled=true;"></TD></TR>
68 <% include('/elements/footer.html') %>
72 unless $FS::CurrentUser::CurrentUser->access_right('Import');