summaryrefslogtreecommitdiff
path: root/httemplate/search/cust_bill.html
diff options
context:
space:
mode:
authorivan <ivan>2006-07-16 00:55:06 +0000
committerivan <ivan>2006-07-16 00:55:06 +0000
commit580330233cbf32c58d9f29dc391bd2ebd83e16d5 (patch)
tree117d21cbaa15b43193432588516ad978254da167 /httemplate/search/cust_bill.html
parent11f98403d0c7bf158ad0f71120e15c0bdf3d792c (diff)
odds and ends
Diffstat (limited to 'httemplate/search/cust_bill.html')
-rwxr-xr-xhttemplate/search/cust_bill.html9
1 files changed, 8 insertions, 1 deletions
diff --git a/httemplate/search/cust_bill.html b/httemplate/search/cust_bill.html
index 16128d5c8..79c05dc42 100755
--- a/httemplate/search/cust_bill.html
+++ b/httemplate/search/cust_bill.html
@@ -37,7 +37,7 @@
$begin = str2time($1);
push @where, "cust_bill._date >= $begin";
}
- if ( $cgi->param('ending')
+ if ( $cgi->param('ending')
&& $cgi->param('ending') =~ /^([ 0-9\-\/]{0,10})$/ ) {
$end = str2time($1) + 86399;
push @where, "cust_bill._date < $end";
@@ -52,6 +52,13 @@
push @where, "cust_bill._date < $end";
}
+ if ( $cgi->param('invnum_min') =~ /^\s*(\d+)\s*$/ ) {
+ push @where, "cust_bill.invnum >= $1";
+ }
+ if ( $cgi->param('invnum_max') =~ /^\s*(\d+)\s*$/ ) {
+ push @where, "cust_bill.invnum <= $1";
+ }
+
if ( $cgi->param('agentnum') =~ /^(\d+)$/ ) {
$agentnum = $1;
push @where, "cust_main.agentnum = $agentnum";