summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2010-07-23 23:16:18 +0000
committerivan <ivan>2010-07-23 23:16:18 +0000
commite19bec38bc213b19ca50be8d86f51310daa040b4 (patch)
tree7972d0ee24d495248622d8df53ac3520ad617c8e /FS
parent5ef991c5001d0a9413d99cc76f152f3a7b71459b (diff)
put batch card numbers/masks in cust_pay so they can be refunded, patch from peter loeppky, RT#8776
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/pay_batch.pm3
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 ) {