From bd8d2cd5fd7035e2775c72113aaeb6abc84dd73f Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 13 Jul 2007 23:52:32 +0000 Subject: fix race condition where ->apply_payments_and_credits could double-apply in rare cases --- httemplate/edit/process/cust_main.cgi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'httemplate/edit/process/cust_main.cgi') 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; % % } -- cgit v1.2.1