[freeside-commits] branch master updated. 096e5445242151d94c60453d2b55ed2dd57d5a58

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


The branch, master has been updated
       via  096e5445242151d94c60453d2b55ed2dd57d5a58 (commit)
      from  a832fdcc15e848eb6b63998403cad11cf3d6e3c3 (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 096e5445242151d94c60453d2b55ed2dd57d5a58
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Sat Mar 12 15:17:33 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 53070df..1cd2aba 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} );
 

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

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




More information about the freeside-commits mailing list