From 1ff7070534d12c49c9d16f230301a3880e8dd5ec Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Sat, 12 Mar 2016 15:17:36 -0800 Subject: [PATCH] don't run $0 transactions for self-service orders of $0 packages, RT#39078 --- FS/FS/cust_main/Billing_Realtime.pm | 2 ++ 1 file changed, 2 insertions(+) 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} ); -- 2.11.0