diff options
author | mark <mark> | 2011-02-09 23:08:41 +0000 |
---|---|---|
committer | mark <mark> | 2011-02-09 23:08:41 +0000 |
commit | 83b363898f0f95a4e85d44b88cba2f0751c27361 (patch) | |
tree | 82c89c3a3669cb9c07f64d4232e2f7c4bcfa25a9 /FS/FS/pay_batch.pm | |
parent | b9cf39b5041702b3211a4ea5b471a3b059cd81ea (diff) |
fix batch payment recording, fallout from #10545
Diffstat (limited to 'FS/FS/pay_batch.pm')
-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 7db123c..9bec2c7 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) ) { |