select a date when importing payments, RT#27087
[freeside.git] / httemplate / misc / cust_pay-import.cgi
1 <& /elements/header.html, 'Batch Payment Import' &>
2
3 Import a CSV file containing customer payments.
4 <BR><BR>
5
6 <FORM ACTION="process/cust_pay-import.cgi" METHOD="post" ENCTYPE="multipart/form-data">
7
8 <% &ntable("#cccccc", 2) %>
9
10 <& /elements/tr-select-agent.html,
11      #'curr_value' => '', #$agentnum,
12      'label'       => "<B>Agent</B>",
13      'empty_label' => 'Select agent',
14 &>
15
16 <& /elements/tr-input-date-field.html, {
17      'name'  => '_date',
18      #'value' => '',
19      'label' => 'Date',
20    }
21 &>
22
23 <TR>
24   <TH ALIGN="right">Format</TH>
25   <TD>
26     <SELECT NAME="format">
27       <OPTION VALUE="simple">Simple
28 <!--      <OPTION VALUE="extended" SELECTED>Extended -->
29     </SELECT>
30   </TD>
31 </TR>
32
33 <TR>
34   <TH ALIGN="right">CSV filename</TH>
35   <TD><INPUT TYPE="file" NAME="csvfile"></TD>
36 </TR>
37
38 <TR><TD COLSPAN=2 ALIGN="center" STYLE="padding-top:6px"><INPUT TYPE="submit" VALUE="Import CSV file"></TD></TR>
39
40 </TABLE>
41
42 </FORM>
43
44 <BR>
45
46 Simple file format is CSV, with the following field order: <i>custnum, agent_custid, amount, checknum</i>
47 <BR><BR>
48
49 <!-- Extended file format is not yet defined</i>
50 <BR><BR> -->
51
52 Field information:
53
54 <ul>
55
56   <li><i>custnum</i>: This is the freeside customer number.  It may be left blank.  If specified, agent_custid must be blank.
57
58   <li><i>agent_custid</i>: This is the reseller's idea of the customer number or identifier.  It may be left blank.  If specified, custnum must be blank.
59
60   <li><i>amount</i>: A positive numeric value with at most two digits after the decimal point.
61
62   <li><i>checknum</i>: A sequences of digits.  May be left blank.
63
64 </ul>
65
66 <BR>
67
68 <& /elements/footer.html &>