diff options
author | mark <mark> | 2011-02-10 06:08:30 +0000 |
---|---|---|
committer | mark <mark> | 2011-02-10 06:08:30 +0000 |
commit | 774bbec9e4f6ad5aff02c1d64b6d3e48d594279e (patch) | |
tree | 76d444d6f37b842bdc7ba0089aa95e71f026a6fa | |
parent | 5a4db25ecf6a56c0777c52c4d172c675dad0791b (diff) |
fix batch payment recording again
-rw-r--r-- | FS/FS/pay_batch.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/FS/FS/pay_batch.pm b/FS/FS/pay_batch.pm index 9bec2c794..5ccad5bf1 100644 --- a/FS/FS/pay_batch.pm +++ b/FS/FS/pay_batch.pm @@ -354,14 +354,14 @@ sub import_results { &{$hook}(\%hash, $cust_pay_batch->hashref); - my $new_cust_pay_batch = new FS::cust_pay_batch { - $cust_pay_batch->hash, - %hash - }; + my $new_cust_pay_batch = new FS::cust_pay_batch { $cust_pay_batch->hash }; my $error = ''; if ( &{$approved_condition}(\%hash) ) { + foreach ('paid', '_date', 'payinfo') { + $new_cust_pay_batch->$_($hash{$_}) if $hash{$_}; + } $error = $new_cust_pay_batch->approve($hash{'paybatch'} || $self->batchnum); $total += $hash{'paid'}; |