From: Ivan Kohler Date: Sat, 12 Mar 2016 23:17:33 +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/?p=freeside.git;a=commitdiff_plain;h=096e5445242151d94c60453d2b55ed2dd57d5a58 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 53070df29..1cd2aba5b 100644 --- a/FS/FS/cust_main/Billing_Realtime.pm +++ b/FS/FS/cust_main/Billing_Realtime.pm @@ -122,6 +122,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} );