checkpoint of new tax rating system
[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 <FORM ACTION="process/tax-import.cgi" METHOD="post" ENCTYPE="multipart/form-data">
7
8 <% &ntable("#cccccc", 2) %>
9
10 <TR>
11   <TH ALIGN="right">Format</TH>
12   <TD>
13     <SELECT NAME="format">
14       <OPTION VALUE="cch">CCH
15 <!--      <OPTION VALUE="extended" SELECTED>Extended
16       <OPTION VALUE="extended-plus_company">Extended plus company -->
17     </SELECT>
18   </TD>
19 </TR>
20
21 <TR>
22   <TH ALIGN="right">code CSV filename</TH>
23   <TD><INPUT TYPE="file" NAME="codefile"></TD>
24 </TR>
25
26 <TR>
27   <TH ALIGN="right">plus4 CSV filename</TH>
28   <TD><INPUT TYPE="file" NAME="plus4file"></TD>
29 </TR>
30
31 <TR>
32   <TH ALIGN="right">txmatrix CSV filename</TH>
33   <TD><INPUT TYPE="file" NAME="txmatrix"></TD>
34 </TR>
35
36 <TR>
37   <TH ALIGN="right">detail CSV filename</TH>
38   <TD><INPUT TYPE="file" NAME="detail"></TD>
39 </TR>
40
41
42 <TR><TD COLSPAN=2 ALIGN="center" STYLE="padding-top:6px"><INPUT TYPE="submit" VALUE="Import CSV files"></TD></TR>
43
44 </TABLE>
45
46 </FORM>
47
48 <BR>
49
50 <!-- Simple file format is CSV, with the following field order: <i>cust_pkg.setup, dayphone, first, last, address1, address2, city, state, zip, comments</i>
51 <BR><BR> -->
52
53 <%$req%> Required fields
54 <BR><BR>
55
56 Field information:
57
58 <ul>
59
60   <li><i>refnum</i>: Advertising source number - where a customer heard about your service.  Configuration -&gt; Miscellaneous -&gt; View/Edit advertising sources.  This field has special treatment upon import: If a string is passed instead
61 of an integer, the string is searched for and if necessary auto-created in the
62 advertising source table.
63
64   <li><i>payinfo</i>: Credit card number, or leave this, <i>paycvv</i> and <i>paydate</i> blank for email/paper invoicing.
65
66   <li><i>paycvv</i>: CVV2 number (three digits on the back of the credit card)
67
68   <li><i>paydate</i>: Credit card expiration date, MM/YYYY or MM/YY (M/YY and M/YYYY are also accepted).
69
70   <li><i>invoicing_list</i>: Email address for invoices, or POST for postal invoices.
71
72   <li><i>pkgpart</i>: Package definition.  Configuration -&gt; Provisioning, services and packages -&gt; View/Edit package definitions
73
74   <li><i>username</i> and <i>_password</i> are required if <i>pkgpart</i> is specified.
75 </ul>
76
77 <BR>
78
79 <% include('/elements/footer.html') %>
80
81 <%once>
82
83 my $req = qq!<font color="#ff0000">*</font>!;
84
85 </%once>
86 <%init>
87
88 die "access denied"
89   unless $FS::CurrentUser::CurrentUser->access_right('Import');
90
91 </%init>