summaryrefslogtreecommitdiff
path: root/FS/FS/part_event/Condition/balance.pm
diff options
context:
space:
mode:
authorivan <ivan>2008-11-22 22:17:28 +0000
committerivan <ivan>2008-11-22 22:17:28 +0000
commit58f99accce35aa76abe9ff852f6c6ee84e8ce712 (patch)
tree4403996ba0953f5826d5b84b99d9f99f6629683e /FS/FS/part_event/Condition/balance.pm
parent1d84feb7fe821b547e211ad03e5c200c8f218797 (diff)
referral credits overhaul, use billing events, agents can self-configure, limit to once-per-customer, depend on any time from referred package, referred customer payment, specific packages, partial staged credits, RT#3983
Diffstat (limited to 'FS/FS/part_event/Condition/balance.pm')
-rw-r--r--FS/FS/part_event/Condition/balance.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/part_event/Condition/balance.pm b/FS/FS/part_event/Condition/balance.pm
index 263941351..65670c030 100644
--- a/FS/FS/part_event/Condition/balance.pm
+++ b/FS/FS/part_event/Condition/balance.pm
@@ -40,7 +40,7 @@ sub condition_sql {
my $balance_sql = FS::cust_main->balance_sql;
- "$balance_sql > $over";
+ "$balance_sql > CAST( $over AS numeric )";
}