support for cch fixed format
[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 (CSV)
22         <OPTION VALUE="cch">CCH initial import (CSV)
23         <OPTION VALUE="cch-fixed-update">CCH update (fixed length)
24         <OPTION VALUE="cch-fixed">CCH initial import (fixed length)
25       </SELECT>
26     </TD>
27   </TR>
28
29   <% include( '/elements/file-upload.html',
30                 'field'    => [ 'codefile',
31                                 'plus4file',
32                                 'txmatrix',
33                                 'detail',
34                               ],
35                 'label'    => [ 'code filename',
36                                 'plus4 filename',
37                                 'txmatrix filename',
38                                 'detail filename',
39                               ],
40                 'debug'    => 0,
41             )
42   %>
43
44   <TR>
45     <TD COLSPAN=2 ALIGN="center" STYLE="padding-top:6px">
46       <INPUT TYPE    = "submit"
47              VALUE   = "Import CSV files"
48              onClick = "document.TaxRateUpload.submit.disabled=true;"
49       >
50     </TD>
51   </TR>
52
53 </TABLE>
54
55 </FORM>
56
57 <% include('/elements/footer.html') %>
58 <%init>
59
60 die "access denied"
61   unless $FS::CurrentUser::CurrentUser->access_right('Import');
62
63 </%init>