don't run $0 transactions for self-service orders of $0 packages, RT#39078
authorIvan Kohler <ivan@freeside.biz>
Sat, 12 Mar 2016 23:17:36 +0000 (15:17 -0800)
committerIvan Kohler <ivan@freeside.biz>
Sat, 12 Mar 2016 23:17:36 +0000 (15:17 -0800)
FS/FS/cust_main/Billing_Realtime.pm

index 20b21dc..1db44bc 100644 (file)
@@ -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} );