[freeside-commits] branch master updated. b3f4989d724bc64c0e753fa4fa83fe2196d9476f
Ivan
ivan at 420.am
Tue Jun 24 00:33:01 PDT 2014
The branch, master has been updated
via b3f4989d724bc64c0e753fa4fa83fe2196d9476f (commit)
from ee05571f35f357d3558c9f6e8d23799fb69c0cbf (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 b3f4989d724bc64c0e753fa4fa83fe2196d9476f
Author: Ivan Kohler <ivan at freeside.biz>
Date: Tue Jun 24 00:32:59 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