From: mark Date: Wed, 9 Feb 2011 23:09:06 +0000 (+0000) Subject: fix batch payment recording, fallout from #10545 X-Git-Tag: freeside_2_1_2~66 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=6b10752baaf502c7cad8c777c1d2ef4e96168161 fix batch payment recording, fallout from #10545 --- diff --git a/FS/FS/pay_batch.pm b/FS/FS/pay_batch.pm index 7db123c10..9bec2c794 100644 --- a/FS/FS/pay_batch.pm +++ b/FS/FS/pay_batch.pm @@ -352,10 +352,13 @@ sub import_results { my $custnum = $cust_pay_batch->custnum, my $payby = $cust_pay_batch->payby, - my $new_cust_pay_batch = new FS::cust_pay_batch { $cust_pay_batch->hash }; - &{$hook}(\%hash, $cust_pay_batch->hashref); + my $new_cust_pay_batch = new FS::cust_pay_batch { + $cust_pay_batch->hash, + %hash + }; + my $error = ''; if ( &{$approved_condition}(\%hash) ) {