enable CardFortress in test database, #71513
[freeside.git] / httemplate / misc / cust_main_note-import.html
index 67f49f3..cc1645d 100644 (file)
@@ -5,7 +5,7 @@
 Import a CSV file containing customer notes records.
 <BR><BR>
 
-File format is CSV, with the following field order: <i>[custnum], last, first, notefield1, notefield2, notefield3...</i>
+File format is CSV, with the following field order: <i>[custnum,] last, first, notefield1, notefield2, notefield3...</i>
 <BR>
 The optional custnum field is identified by being numeric.
 Anything after the character sequence #! is ignored.
@@ -13,6 +13,13 @@ Anything after the character sequence #! is ignored.
 
 <% &ntable("#cccccc") %>
 
+<% include('/elements/tr-select-agent.html',
+              #'curr_value' => '', #$agentnum,
+              'label'       => "<B>Agent</B>",
+              'empty_label' => 'Select agent',
+           )
+%>
+
 <TR>
   <TH ALIGN="right">CSV filename</TH>
   <TD><INPUT TYPE="file" NAME="csvfile"></TD>
@@ -22,6 +29,11 @@ Anything after the character sequence #! is ignored.
   <TD><INPUT TYPE="checkbox" NAME="fuzzies"></TD>
 </TR>
 
+<TR>
+  <TH ALIGN="right">custnum is reseller's customer number</TH>
+  <TD><INPUT TYPE="checkbox" NAME="use_agent_custid"></TD>
+</TR>
+
 </TABLE>
 <BR><BR>
 
@@ -30,3 +42,10 @@ Anything after the character sequence #! is ignored.
 
 <% include('/elements/footer.html') %>
 
+<%init>
+
+die "access denied"
+  unless $FS::CurrentUser::CurrentUser->access_right('Import');
+
+</%init>
+