[freeside-commits] branch FREESIDE_3_BRANCH updated. 47d3ba763306e281c0c4b736877ac8c5d4e9e4a1
Ivan
ivan at 420.am
Tue Jun 24 00:33:03 PDT 2014
The branch, FREESIDE_3_BRANCH has been updated
via 47d3ba763306e281c0c4b736877ac8c5d4e9e4a1 (commit)
from 807477c19bcceee280ff829f7201bf9efdea6873 (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 47d3ba763306e281c0c4b736877ac8c5d4e9e4a1
Author: Ivan Kohler <ivan at freeside.biz>
Date: Tue Jun 24 00:33:01 2014 -0700
fix credit limits, RT#27267
diff --git a/FS/FS/cust_main/Credit_Limit.pm b/FS/FS/cust_main/Credit_Limit.pm
index a6beb22..8a2caa4 100644
--- a/FS/FS/cust_main/Credit_Limit.pm
+++ b/FS/FS/cust_main/Credit_Limit.pm
@@ -44,8 +44,9 @@ sub check_credit_limit {
my $sum = qsearchs( {
'select' => 'SUM(rated_price) AS rated_price',
'table' => 'cdr',
- 'hashref' => { 'freesidestatus' => 'rated', },
- 'extra_sql' => ' AND svcnum IN ('. join(',', at svcnum). ') ',
+ #'hashref' => { 'freesidestatus' => 'rated', },
+ 'extra_sql' => " WHERE freesidestatus = 'rated' ".
+ ' AND svcnum IN ('. join(',', at svcnum). ') ',
} );
return '' unless $sum->rated_price > $credit_limit;
-----------------------------------------------------------------------
Summary of changes:
FS/FS/cust_main/Credit_Limit.pm | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
More information about the freeside-commits
mailing list