1 <& /elements/header.html, 'Batch Payment Import' &>
3 Import a CSV file containing customer payments.
6 <FORM ACTION="process/cust_pay-import.cgi" METHOD="post" ENCTYPE="multipart/form-data">
8 <% &ntable("#cccccc", 2) %>
10 <& /elements/tr-select-agent.html,
11 #'curr_value' => '', #$agentnum,
12 'label' => "<B>Agent</B>",
13 'empty_label' => 'Select agent',
16 <& /elements/tr-input-date-field.html, {
24 <TH ALIGN="right">Format</TH>
26 <SELECT NAME="format">
27 <OPTION VALUE="simple">Simple
28 <!-- <OPTION VALUE="extended" SELECTED>Extended -->
34 <TH ALIGN="right">CSV filename</TH>
35 <TD><INPUT TYPE="file" NAME="csvfile"></TD>
38 <TR><TD COLSPAN=2 ALIGN="center" STYLE="padding-top:6px"><INPUT TYPE="submit" VALUE="Import CSV file"></TD></TR>
46 Simple file format is CSV, with the following field order: <i>custnum, agent_custid, amount, checknum</i>
49 <!-- Extended file format is not yet defined</i>
56 <li><i>custnum</i>: This is the freeside customer number. It may be left blank. If specified, agent_custid must be blank.
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.
60 <li><i>amount</i>: A positive numeric value with at most two digits after the decimal point.
62 <li><i>checknum</i>: A sequence of digits. May be left blank.
64 <li><i>invnum</i>: Invoice number, optional
70 <& /elements/footer.html &>