[freeside-commits] freeside/FS/FS cust_main.pm,1.491,1.492
Ivan,,,
ivan at wavetail.420.am
Sat Jan 16 19:31:54 PST 2010
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv21434
Modified Files:
cust_main.pm
Log Message:
return an error for 0 amount payments to avoid a $0 payment getting stuck in declined or captured status, RT#6993
Index: cust_main.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_main.pm,v
retrieving revision 1.491
retrieving revision 1.492
diff -u -d -r1.491 -r1.492
--- cust_main.pm 6 Jan 2010 04:43:46 -0000 1.491
+++ cust_main.pm 17 Jan 2010 03:31:52 -0000 1.492
@@ -4107,6 +4107,8 @@
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');
More information about the freeside-commits
mailing list