[freeside-commits] freeside/httemplate/search cust_tax_exempt.html, NONE, 1.1 cust_tax_exempt.cgi, 1.2, 1.3

Ivan,,, ivan at wavetail.420.am
Tue Jul 8 20:18:51 PDT 2008


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

Modified Files:
	cust_tax_exempt.cgi 
Added Files:
	cust_tax_exempt.html 
Log Message:
search legacy tax exemptions by customer status

--- NEW FILE: cust_tax_exempt.html ---
<% include('/elements/header.html', 'Legacy tax exemption report' ) %>

<FORM ACTION="cust_tax_exempt.cgi" METHOD="GET">

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

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

    <% include( '/elements/tr-select-cust_main-status.html',
                  'label' => 'Customer Status'
              )
    %>

  </TABLE>

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


</FORM>

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

die "access denied"
  unless $FS::CurrentUser::CurrentUser->access_right('View customer tax exemptions');

</%init>


Index: cust_tax_exempt.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/cust_tax_exempt.cgi,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- cust_tax_exempt.cgi	23 Jun 2008 00:37:07 -0000	1.2
+++ cust_tax_exempt.cgi	9 Jul 2008 03:18:48 -0000	1.3
@@ -67,6 +67,13 @@
   push @where,  "cust_main.custnum = $1";
 }
 
+#prospect active inactive suspended cancelled
+if ( grep { $cgi->param('status') eq $_ } FS::cust_main->statuses() ) {
+  my $method = $cgi->param('status'). '_sql';
+  #push @where, $class->$method();
+  push @where, FS::cust_main->$method();
+}
+
 if ( $cgi->param('out') ) {
 
   push @where, "



More information about the freeside-commits mailing list