[freeside-commits] branch FREESIDE_3_BRANCH updated. e2bbbc8aaec0a4c997bed670a083e53954e399fc
Ivan
ivan at 420.am
Sun Feb 16 17:31:19 PST 2014
The branch, FREESIDE_3_BRANCH has been updated
via e2bbbc8aaec0a4c997bed670a083e53954e399fc (commit)
from 296b198525e573770dd2a1c686493f522c69f51f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit e2bbbc8aaec0a4c997bed670a083e53954e399fc
Author: Ivan Kohler <ivan at freeside.biz>
Date: Sun Feb 16 17:31:19 2014 -0800
credit limit for CDR prerating, RT#27267
diff --git a/httemplate/search/cust_main_credit_limit.html b/httemplate/search/cust_main_credit_limit.html
index b2a0c9b..902dbbc 100644
--- a/httemplate/search/cust_main_credit_limit.html
+++ b/httemplate/search/cust_main_credit_limit.html
@@ -1,11 +1,7 @@
<& elements/search.html,
'title' => 'Credit limit incidents',
'name_singular' => 'incident',
- 'query' => { table => 'cust_main_credit_limit',
- hashref => \%hash,
- extra_sql => " AND $dates_sql ",
- order_by => 'ORDER BY _date ASC',
- },
+ 'query' => $query,
'count_query' => "SELECT COUNT(*) FROM cust_main_credit_limit",
'header' => [ 'Date',
@@ -60,4 +56,11 @@ if ( $cgi->param('custnum') =~ /^(\d+)$/ ) {
$count_query .= " AND custnum = $1";
}
+my $query = {
+ table => 'cust_main_credit_limit',
+ hashref => \%hash,
+ extra_sql => ( keys(%hash) ? ' AND ' : ' WHERE ' ). $dates_sql,
+ order_by => 'ORDER BY _date ASC',
+};
+
</%init>
-----------------------------------------------------------------------
Summary of changes:
httemplate/search/cust_main_credit_limit.html | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
More information about the freeside-commits
mailing list