[freeside-commits] freeside/httemplate/misc cust_pay-import.cgi, 1.1, 1.2

Jeff Finucane,420,, jeff at wavetail.420.am
Fri Jan 25 10:29:05 PST 2008


Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail:/tmp/cvs-serv15879/httemplate/misc

Added Files:
	cust_pay-import.cgi 
Log Message:
simple payment CSV import

--- NEW FILE: cust_pay-import.cgi ---
<% include("/elements/header.html",'Batch Payment Import') %>

Import a CSV file containing customer payments.
<BR><BR>

<FORM ACTION="process/cust_pay-import.cgi" METHOD="post" ENCTYPE="multipart/form-data">

<% &ntable("#cccccc", 2) %>

<% include('/elements/tr-select-agent.html',
              #'curr_value' => '', #$agentnum,
              'label'       => "<B>Agent</B>",
              'empty_label' => 'Select agent',
           )
%>

<TR>
  <TH ALIGN="right">Format</TH>
  <TD>
    <SELECT NAME="format">
      <OPTION VALUE="simple">Simple
<!--      <OPTION VALUE="extended" SELECTED>Extended -->
    </SELECT>
  </TD>
</TR>

<TR>
  <TH ALIGN="right">CSV filename</TH>
  <TD><INPUT TYPE="file" NAME="csvfile"></TD>
</TR>

<TR><TD COLSPAN=2 ALIGN="center" STYLE="padding-top:6px"><INPUT TYPE="submit" VALUE="Import CSV file"></TD></TR>

</TABLE>

</FORM>

<BR>

Simple file format is CSV, with the following field order: <i>custnum, agent_custid, amount, checknum</i>
<BR><BR>

<!-- Extended file format is not yet defined</i>
<BR><BR> -->

Field information:

<ul>

  <li><i>custnum</i>: This is the freeside customer number.  It may be left blank.  If specified, agent_custid must be blank.

  <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.

  <li><i>amount</i>: A positive numeric value with at most two digits after the decimal point.

  <li><i>checknum</i>: A sequences of digits.  May be left blank.

</ul>

<BR>

<% include('/elements/footer.html') %>



More information about the freeside-commits mailing list