notes import with class, RT#73455
[freeside.git] / httemplate / misc / cust_main_note-import.html
1 <% include("/elements/header.html",'Batch Customer Note Import') %>
2
3 <FORM ACTION="cust_main_note-import.cgi" METHOD="post" ENCTYPE="multipart/form-data">
4
5 Import a CSV file containing customer notes records.
6 <BR><BR>
7
8 File format is CSV, with the following field order: <i>[custnum,] last, first, notefield1, notefield2, notefield3...</i>
9 <BR>
10 The optional custnum field is identified by being numeric.
11 Anything after the character sequence #! is ignored.  If a notefield starts
12 like <i>classnum|</i>, with a number followed by the pipe symbol (|), then it
13 the note will be imported into that note class.
14 <BR><BR>
15
16 <% &ntable("#cccccc") %>
17
18 <% include('/elements/tr-select-agent.html',
19               #'curr_value' => '', #$agentnum,
20               'label'       => "<B>Agent</B>",
21               'empty_label' => 'Select agent',
22            )
23 %>
24
25 <TR>
26   <TH ALIGN="right">CSV filename</TH>
27   <TD><INPUT TYPE="file" NAME="csvfile"></TD>
28 </TR>
29 <TR>
30   <TH ALIGN="right">Include additional possibilites when exact match is found</TH>
31   <TD><INPUT TYPE="checkbox" NAME="fuzzies"></TD>
32 </TR>
33
34 <TR>
35   <TH ALIGN="right">custnum is reseller's customer number</TH>
36   <TD><INPUT TYPE="checkbox" NAME="use_agent_custid"></TD>
37 </TR>
38
39 </TABLE>
40 <BR><BR>
41
42 <INPUT TYPE="submit" VALUE="Load and match">
43 </FORM>
44
45 <% include('/elements/footer.html') %>
46
47 <%init>
48
49 die "access denied"
50   unless $FS::CurrentUser::CurrentUser->access_right('Import');
51
52 </%init>
53