[freeside-commits] freeside/httemplate/search h_cust_pay.html, NONE, 1.1 report_h_cust_pay.html, NONE, 1.1

Ivan,,, ivan at wavetail.420.am
Sun Mar 14 23:10:46 PDT 2010


Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv32303

Added Files:
	h_cust_pay.html report_h_cust_pay.html 
Log Message:
deleted payment report, RT#7694

--- NEW FILE: h_cust_pay.html ---
<% include( 'elements/cust_pay_or_refund.html',
                'table'         => 'h_cust_pay',
                'amount_field'  => 'paid',
                'name_singular' => 'payment',
                'name_verb'     => 'paid',
                'pre_header'    => [ 'Transaction',    'By' ],
                'pre_fields'    => [ 'history_action', 'history_user' ],
          )
%>

--- NEW FILE: report_h_cust_pay.html ---
<% include('/elements/header.html', 'Payment transaction history' ) %>

<FORM ACTION="h_cust_pay.html" METHOD="GET">
<INPUT TYPE="hidden" NAME="magic" VALUE="_date">

<TABLE BGCOLOR="#cccccc" CELLSPACING=0>

  <TR>
    <TH BGCOLOR="#e8e8e8" COLSPAN=2 ALIGN="left">
      <FONT SIZE="+1">Search options</FONT>
    </TH>
  </TR>

%#history stuff
  <TR>
    <TD ALIGN="right">Search transactions for: </TD>
    <TD>
      <SELECT NAME="history_action">
        <OPTION VALUE="insert,replace_old,replace_new,delete">(all changes)
        <OPTION VALUE="delete">Insertions
        <OPTION VALUE="replace_old,replace_new">Replacements
        <OPTION VALUE="delete">Deletions
      </SELECT>
    </TD>
  </TR>

  <TR>
    <TD ALIGN="right" VALIGN="center">Transaction date: </TD>
    <TD>
      <TABLE>
        <% include( '/elements/tr-input-beginning_ending.html',
                      prefix => 'history_date',
                      layout => 'horiz',
                  )
        %>
      </TABLE>
    </TD>
  </TR>
%#eo history stuff

  <TR>
    <TD ALIGN="right">Payments of type: </TD>
    <TD>
      <SELECT NAME="payby" onChange="payby_changed(this)">
        <OPTION VALUE="">all</OPTION>
        <OPTION VALUE="CARD">credit card (all)</OPTION>
        <OPTION VALUE="CARD-VisaMC">credit card (Visa/MasterCard)</OPTION>
        <OPTION VALUE="CARD-Amex">credit card (American Express)</OPTION>
        <OPTION VALUE="CARD-Discover">credit card (Discover)</OPTION>
        <OPTION VALUE="CARD-Maestro">credit card (Maestro/Switch/Solo)</OPTION>
        <OPTION VALUE="CHEK">electronic check / ACH</OPTION>
        <OPTION VALUE="BILL">check</OPTION>
        <OPTION VALUE="PREP">prepaid card</OPTION>
        <OPTION VALUE="CASH">cash</OPTION>
        <OPTION VALUE="WEST">Western Union</OPTION>
        <OPTION VALUE="MCRD">manual credit card</OPTION>
      </SELECT>
    </TD>
  </TR>

  <SCRIPT TYPE="text/javascript">
  
    function payby_changed(what) {
      if ( what.options[what.selectedIndex].value == 'BILL' ) {
	document.getElementById('checkno_caption').style.color = '#000000';
        what.form.payinfo.disabled = false;
	what.form.payinfo.style.backgroundColor = '#ffffff';
      } else {
	document.getElementById('checkno_caption').style.color = '#bbbbbb';
        what.form.payinfo.disabled = true;
	what.form.payinfo.style.backgroundColor = '#dddddd';
      }
    }

  </SCRIPT>

  <TR>
    <TD ALIGN="right"><FONT ID="checkno_caption" COLOR="#bbbbbb">Check #: </FONT></TD>
    <TD>
      <INPUT TYPE="text" NAME="payinfo" DISABLED STYLE="background-color: #dddddd">
    </TD>
  </TR>

  <% include( '/elements/tr-select-agent.html',
                 'curr_value'    => scalar($cgi->param('agentnum')),
                 'label'         => 'for agent: ',
                 'disable_empty' => 0,
             )
  %>

  <% include( '/elements/tr-select-otaker.html' ) %>

  <TR>
    <TD ALIGN="right" VALIGN="center">Payment</TD>
    <TD>
      <TABLE>
        <% include( '/elements/tr-input-beginning_ending.html',
                      layout   => 'horiz',
                  )
        %>
      </TABLE>
    </TD>
  </TR>

  <% include( '/elements/tr-input-lessthan_greaterthan.html',
                'label' => 'Amount',
		'field' => 'paid',
            )
  %>

</TABLE>

<BR>
<INPUT TYPE="submit" VALUE="Get Report">

</FORM>

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

die "access denied"
  unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');

</%init>



More information about the freeside-commits mailing list