This commit was generated by cvs2svn to compensate for changes in r10640,
[freeside.git] / httemplate / search / elements / report_cust_pay_or_refund.html
index dff831e..9af4e33 100644 (file)
@@ -17,6 +17,7 @@ Examples:
 
 <FORM ACTION="<% $table %>.html" METHOD="GET">
 <INPUT TYPE="hidden" NAME="magic" VALUE="_date">
+<INPUT TYPE="hidden" NAME="unapplied" VALUE="<% $unapplied %>">
 
 <TABLE BGCOLOR="#cccccc" CELLSPACING=0>
 
@@ -111,6 +112,15 @@ Examples:
             )
   %>
 
+% if ( $table eq 'cust_pay' ) { 
+  <% include( '/elements/tr-checkbox.html',
+                'label' => 'Include tax names',
+               'field' => 'tax_names',
+                'value' => 1,
+            )
+  %>
+% }
+
 </TABLE>
 
 <BR>
@@ -129,8 +139,11 @@ die "access denied"
   unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
 
 my $void = $cgi->param('void') ? 1 : 0;
+my $unapplied = $cgi->param('unapplied') ? 1 : 0;
 
-my $title = $void ? "Voided $name_singular report" : "\u$name_singular report";
+my $title = $void ? "Voided $name_singular report" :
+            $unapplied ? "Unapplied $name_singular report" :
+            "\u$name_singular report" ;
 $table .= '_void' if $void;
 
 </%init>