summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2016-03-12 15:17:33 -0800
committerIvan Kohler <ivan@freeside.biz>2016-03-12 15:17:33 -0800
commit096e5445242151d94c60453d2b55ed2dd57d5a58 (patch)
tree57ea91f28de9af0adc757327d8fc82398dc3c77b
parenta832fdcc15e848eb6b63998403cad11cf3d6e3c3 (diff)
don't run $0 transactions for self-service orders of $0 packages, RT#39078
-rw-r--r--FS/FS/cust_main/Billing_Realtime.pm2
1 files changed, 2 insertions, 0 deletions
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} );