summaryrefslogtreecommitdiff
path: root/httemplate/edit
diff options
context:
space:
mode:
authorivan <ivan>2007-07-13 23:52:23 +0000
committerivan <ivan>2007-07-13 23:52:23 +0000
commit9035034a53d60cb7a7687dfee899c1d0c775ea74 (patch)
tree80a6dc3d257fa24b2097746e4b8f074a420dfdd9 /httemplate/edit
parentae5b57a84d549166bae637c0c01db0b9e09b138f (diff)
fix race condition where ->apply_payments_and_credits could double-apply in rare cases
Diffstat (limited to 'httemplate/edit')
-rwxr-xr-xhttemplate/edit/process/cust_main.cgi6
1 files changed, 3 insertions, 3 deletions
diff --git a/httemplate/edit/process/cust_main.cgi b/httemplate/edit/process/cust_main.cgi
index b270fc661..b27e722aa 100755
--- a/httemplate/edit/process/cust_main.cgi
+++ b/httemplate/edit/process/cust_main.cgi
@@ -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;
%
% }