[freeside-commits] freeside/httemplate/edit/process cust_main.cgi, 1.33, 1.34
Ivan,,,
ivan at wavetail.420.am
Fri Jul 13 16:52:25 PDT 2007
Update of /home/cvs/cvsroot/freeside/httemplate/edit/process
In directory wavetail:/tmp/cvs-serv6052/httemplate/edit/process
Modified Files:
cust_main.cgi
Log Message:
fix race condition where ->apply_payments_and_credits could double-apply in rare cases
Index: cust_main.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/process/cust_main.cgi,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- cust_main.cgi 2 Apr 2007 15:49:37 -0000 1.33
+++ cust_main.cgi 13 Jul 2007 23:52:23 -0000 1.34
@@ -145,9 +145,9 @@
% my $conf = new FS::Conf;
% if ( $conf->exists('backend-realtime') && ! $error ) {
%
-% my $berror = $new->bill;
-% $new->apply_payments_and_credits;
-% $berror ||= $new->collect( 'realtime' => 1 );
+% my $berror = $new->bill
+% || $new->apply_payments_and_credits
+% || $new->collect( 'realtime' => 1 );
% warn "Warning, error billing during backend-realtime: $berror" if $berror;
%
% }
More information about the freeside-commits
mailing list