RT# 73422 Fix report Customer Contacts
[freeside.git] / httemplate / misc / rate-import.html
1 <% include("/elements/header.html",'Import Rate Plan') %>
2
3 <& /elements/form-file_upload.html,
4      'name'      => 'RateImportForm',
5      'action '   => 'process/rate-import.html',
6      'num_files' => 1,
7      'fields'    => [ 'ratename' ],
8      'message'   => 'Rate plan import successful',
9      #'url'       => $p."browse/rate_detail.cgi?ratenum=$ratenum", #XXX how?
10      'onsubmit'  => "document.RateImportForm.submitButton.disabled=true;",
11 &>
12
13 <% &ntable("#cccccc", 2) %>
14
15   <TR>
16     <TD>Rate plan</TD>
17     <TD>
18       <INPUT TYPE="text" NAME="ratename" SIZE=32 VALUE="">
19     </TD>
20   </TR>
21
22   <% include( '/elements/file-upload.html',
23                 'field' => 'file',
24                 'label' => 'Filename',
25             )
26   %>
27
28   <TR>
29     <TD COLSPAN=2 ALIGN="center" STYLE="padding-top:6px">
30       <INPUT TYPE    = "submit"
31              ID      = "submitButton"
32              NAME    = "submitButton"
33              VALUE   = "Import rate plan"
34       >
35     </TD>
36   </TR>
37
38 </TABLE>
39
40 </FORM>
41
42 <BR>
43
44 <!--Upload file can be a text file or Excel spreadsheet.  If an Excel spreadsheet,
45  should have an .XLS extension.
46 <BR><BR>
47 -->
48 File format is CSV (comma-separated value), with the following field order:
49 <ul>
50   <li>Destination name
51   <li>Country code / Prefix.  See below for formatting rules.
52   <li>Rate (per minute)
53 <!--
54   <li>(Optional) Included minutes
55   <li>(Optional) Granularity
56 -->
57 </ul>
58
59 Formatting rules for second field:
60 <ul>
61   <li>Simple entries contain just a countrycode or a countrycode and single prefix for example, "61" or "52 33".  Whitespace, plus and dash are ignored.
62   <li>Additional prefixes may be appended after a comma (appropriately quoted), but country code should only be listed once at the beginning.  For example, "61 38,39".
63   <li>
64 </ul>
65
66 Have caution when importing prefix data that is mismatched to your current
67 prefixes.
68
69 <% include('/elements/footer.html') %>
70
71 <%init>
72
73 die "access denied"
74   unless $FS::CurrentUser::CurrentUser->access_right('Import');
75
76 </%init>