projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lock down manual batch approval
[freeside.git]
/
httemplate
/
search
/
elements
/
cust_main_dayranges.html
diff --git
a/httemplate/search/elements/cust_main_dayranges.html
b/httemplate/search/elements/cust_main_dayranges.html
index
9b8b08f
..
91e039d
100644
(file)
--- a/
httemplate/search/elements/cust_main_dayranges.html
+++ b/
httemplate/search/elements/cust_main_dayranges.html
@@
-145,8
+145,12
@@
unless ( $cgi->param('all_customers') ) {
$days = $1;
}
$days = $1;
}
+ # If this is set, allow cust_main records with nonzero balances
+ my $negative = $cgi->param('negative') || 0;
+
push @where,
push @where,
- call_range_sub($range_sub, $days, 0, 'offset' => $offset, 'no_as'=>1). ' > 0'; # != 0';
+ call_range_sub($range_sub, $days, 0, 'offset' => $offset, 'no_as'=>1).
+ ($negative ? ' != 0' : ' > 0');
}
if ( $cgi->param('agentnum') =~ /^(\d+)$/ ) {
}
if ( $cgi->param('agentnum') =~ /^(\d+)$/ ) {