X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_event%2FCondition%2Fbalance_under.pm;h=2002c70185ccc74f8178a34f70a56a90fc0a1aa6;hb=817c1ce0e1cbcfd1f684222c66f46dd13b2d6dd7;hp=5e1903468844f5a69dea80caa50ded2c3d70e14e;hpb=c648976f0b7975f2328ebd7ba8c711fad0ca4195;p=freeside.git diff --git a/FS/FS/part_event/Condition/balance_under.pm b/FS/FS/part_event/Condition/balance_under.pm index 5e1903468..2002c7018 100644 --- a/FS/FS/part_event/Condition/balance_under.pm +++ b/FS/FS/part_event/Condition/balance_under.pm @@ -34,7 +34,7 @@ sub condition_sql { my $balance_sql = FS::cust_main->balance_sql; - "$balance_sql <= $under"; + "$balance_sql <= CAST( $under AS DECIMAL(10,2) )"; }