[freeside-commits] freeside/FS/FS cust_main.pm, 1.464.2.21, 1.464.2.22
Ivan,,,
ivan at wavetail.420.am
Sat Jan 16 19:31:56 PST 2010
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv21438
Modified Files:
Tag: FREESIDE_1_9_BRANCH
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.464.2.21
retrieving revision 1.464.2.22
diff -u -d -r1.464.2.21 -r1.464.2.22
--- cust_main.pm 6 Jan 2010 04:43:49 -0000 1.464.2.21
+++ cust_main.pm 17 Jan 2010 03:31:53 -0000 1.464.2.22
@@ -3996,6 +3996,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