[freeside-commits] branch FREESIDE_3_BRANCH updated. 1ff7070534d12c49c9d16f230301a3880e8dd5ec

Ivan ivan at 420.am
Sat Mar 12 15:17:37 PST 2016


The branch, FREESIDE_3_BRANCH has been updated
       via  1ff7070534d12c49c9d16f230301a3880e8dd5ec (commit)
      from  5eb7abe177a12aff466629f05fd1a0cf934fd489 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 1ff7070534d12c49c9d16f230301a3880e8dd5ec
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Sat Mar 12 15:17:36 2016 -0800

    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 20b21dc..1db44bc 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} );
 

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/cust_main/Billing_Realtime.pm |    2 ++
 1 file changed, 2 insertions(+)




More information about the freeside-commits mailing list