customer import: add progress bar & redirect to a search of the imported customers...
[freeside.git] / httemplate / misc / tax-import.cgi
1 <% include("/elements/header.html",'Batch Tax Rate Import') %>
2
3 Import a CSV file set containing tax rate records.
4 <BR><BR>
5
6 <% include( '/elements/form-file_upload.html',
7               'name'      => 'TaxRateUpload',
8               'action'    => 'process/tax-import.cgi', 
9               'num_files' => 4,
10               'fields'    => [ 'format', ],
11               'message'   => 'Tax rates imported',
12           )
13 %>
14
15 <% &ntable("#cccccc", 2) %>
16
17   <TR>
18     <TH ALIGN="right">Format</TH>
19     <TD>
20       <SELECT NAME="format">
21         <OPTION VALUE="cch-update" SELECTED>CCH update
22         <OPTION VALUE="cch">CCH initial import
23       </SELECT>
24     </TD>
25   </TR>
26
27   <% include( '/elements/file-upload.html',
28                 'field'    => [ 'codefile',
29                                 'plus4file',
30                                 'txmatrix',
31                                 'detail',
32                               ],
33                 'label'    => [ 'code CSV filename',
34                                 'plus4 CSV filename',
35                                 'txmatrix CSV filename',
36                                 'detail CSV filename',
37                               ],
38                 'debug'    => 0,
39             )
40   %>
41
42   <TR>
43     <TD COLSPAN=2 ALIGN="center" STYLE="padding-top:6px">
44       <INPUT TYPE    = "submit"
45              VALUE   = "Import CSV files"
46              onClick = "document.TaxRateUpload.submit.disabled=true;"
47       >
48     </TD>
49   </TR>
50
51 </TABLE>
52
53 </FORM>
54
55 <% include('/elements/footer.html') %>
56 <%init>
57
58 die "access denied"
59   unless $FS::CurrentUser::CurrentUser->access_right('Import');
60
61 </%init>