diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2016-03-12 15:17:35 -0800 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2016-03-12 15:17:35 -0800 |
| commit | fd1b98490dcb8802f0b0a00120e742e97afd0bbe (patch) | |
| tree | 9664b354fd40223b9c0e46086ac611a8e3ecdfe9 | |
| parent | 2347e4dee38ca92b04042812a486694c226cece3 (diff) | |
don't run $0 transactions for self-service orders of $0 packages, RT#39078
| -rw-r--r-- | FS/FS/cust_main/Billing_Realtime.pm | 2 |
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} ); |
