From: Ivan Kohler Date: Sat, 12 Mar 2016 23:17:36 +0000 (-0800) Subject: don't run $0 transactions for self-service orders of $0 packages, RT#39078 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;ds=sidebyside;h=1ff7070534d12c49c9d16f230301a3880e8dd5ec;p=freeside.git don't run $0 transactions for self-service orders of $0 packages, RT#39078 --- diff --git a/FS/FS/cust_main/Billing_Realtime.pm b/FS/FS/cust_main/Billing_Realtime.pm index 20b21dc0b..1db44bc2d 100644 --- a/FS/FS/cust_main/Billing_Realtime.pm +++ b/FS/FS/cust_main/Billing_Realtime.pm @@ -97,6 +97,8 @@ sub realtime_collect { } $options{amount} = $self->balance unless exists( $options{amount} ); + return '' unless $options{amount} > 0; + $options{method} = FS::payby->payby2bop($self->payby) unless exists( $options{method} );