diff options
author | mark <mark> | 2011-02-09 23:09:06 +0000 |
---|---|---|
committer | mark <mark> | 2011-02-09 23:09:06 +0000 |
commit | 6b10752baaf502c7cad8c777c1d2ef4e96168161 (patch) | |
tree | c4b6e13c4dfa68bacd257155b84490c44c7e70e4 | |
parent | a067102c0d7c19e1206c7ad44ac067e55b1b3024 (diff) |
fix batch payment recording, fallout from #10545
-rw-r--r-- | FS/FS/pay_batch.pm | 7 |
1 files changed, 5 insertions, 2 deletions
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) ) { |