[freeside-commits] freeside/httemplate/search/elements cust_pay_or_refund.html, 1.5, 1.6
Ivan,,,
ivan at wavetail.420.am
Mon Jul 27 02:59:08 PDT 2009
Update of /home/cvs/cvsroot/freeside/httemplate/search/elements
In directory wavetail.420.am:/tmp/cvs-serv30662/search/elements
Modified Files:
cust_pay_or_refund.html
Log Message:
searching for voided payments by void date as well, RT#5786
Index: cust_pay_or_refund.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/elements/cust_pay_or_refund.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- cust_pay_or_refund.html 27 Jul 2009 09:07:24 -0000 1.5
+++ cust_pay_or_refund.html 27 Jul 2009 09:59:06 -0000 1.6
@@ -117,7 +117,6 @@
my $orderby;
if ( $cgi->param('magic') eq '_date' ) {
-
if ( $cgi->param('agentnum') && $cgi->param('agentnum') =~ /^(\d+)$/ ) {
push @search, "agentnum = $1"; # $search{'agentnum'} = $1;
my $agent = qsearchs('agent', { 'agentnum' => $1 } );
@@ -219,6 +218,13 @@
push @search, "_date >= $beginning ",
"_date <= $ending";
+ if ( $thing eq 'pay_void' ) {
+ my($v_beginning, $v_ending) =
+ FS::UI::Web::parse_beginning_ending($cgi, 'void');
+ push @search, "void_date >= $v_beginning ",
+ "void_date <= $v_ending";
+ }
+
push @search, FS::UI::Web::parse_lt_gt($cgi, $amount_field );
$orderby = '_date';
More information about the freeside-commits
mailing list