diff options
author | ivan <ivan> | 2010-07-23 23:16:19 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-07-23 23:16:19 +0000 |
commit | 3a7a5db7d266cf73f79463725fcd41d5eefe472c (patch) | |
tree | 5e2729396e0f3496ef466264cd4c25b9d58630f3 | |
parent | 8090f8d2c058e033abf7d6e770a5c37f8cee6341 (diff) |
put batch card numbers/masks in cust_pay so they can be refunded, patch from peter loeppky, RT#8776
-rw-r--r-- | FS/FS/pay_batch.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/FS/FS/pay_batch.pm b/FS/FS/pay_batch.pm index d73c05293..3abb06d2a 100644 --- a/FS/FS/pay_batch.pm +++ b/FS/FS/pay_batch.pm @@ -362,7 +362,8 @@ sub import_results { 'custnum' => $custnum, 'payby' => $payby, 'paybatch' => $self->batchnum, - map { $_ => $hash{$_} } (qw( paid _date payinfo )), + 'payinfo' => ( $hash{'payinfo'} || $cust_pay_batch->payinfo ), + map { $_ => $hash{$_} } (qw( paid _date )), } ); $error = $cust_pay->insert; if ( $error ) { |