[freeside-commits] branch FREESIDE_4_BRANCH updated. fd1b98490dcb8802f0b0a00120e742e97afd0bbe
Ivan
ivan at 420.am
Sat Mar 12 15:17:36 PST 2016
The branch, FREESIDE_4_BRANCH has been updated
via fd1b98490dcb8802f0b0a00120e742e97afd0bbe (commit)
from 2347e4dee38ca92b04042812a486694c226cece3 (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 fd1b98490dcb8802f0b0a00120e742e97afd0bbe
Author: Ivan Kohler <ivan at freeside.biz>
Date: Sat Mar 12 15:17:35 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