X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=FS%2FFS%2Fcust_main.pm;h=87ab9615d8b7c66d54bcd009b2ec0a4a82b5af1f;hb=f2b3bd57f189c837f5c82315e1f6740ab14da1d4;hp=9462af51e0d5e5f2336f8a606a6da9825b525bb1;hpb=2d8321656d02dd61851dd15afc32ba679eccb410;p=freeside.git diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index 9462af51e..87ab9615d 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -3996,6 +3996,8 @@ sub realtime_bop { warn " $_ => $options{$_}\n" foreach keys %options; } + return "Amount must be greater than 0" unless $amount > 0; + unless ( $options{'description'} ) { if ( $conf->exists('business-onlinepayment-description') ) { my $dtempl = $conf->config('business-onlinepayment-description');