diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2015-10-06 01:46:31 -0500 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2015-10-06 01:46:31 -0500 |
commit | cf512ab17435a0199ae13a8faefef94600a7a61b (patch) | |
tree | 246bdd0ee130cf561c0cb038e812cd80f0a21731 /FS/FS/payinfo_Mixin.pm | |
parent | a267a869ad2f2c9b6ba4e306aea6103e3a6bfe4e (diff) |
RT#37038 Add Card Type Name to Payment Report
Diffstat (limited to 'FS/FS/payinfo_Mixin.pm')
-rw-r--r-- | FS/FS/payinfo_Mixin.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/FS/FS/payinfo_Mixin.pm b/FS/FS/payinfo_Mixin.pm index c66e3bc..6b96bbe 100644 --- a/FS/FS/payinfo_Mixin.pm +++ b/FS/FS/payinfo_Mixin.pm @@ -239,7 +239,11 @@ sub payby_payinfo_pretty { my $locale = shift; my $lh = FS::L10N->get_handle($locale); if ( $self->payby eq 'CARD' ) { - $lh->maketext('Card #') . $self->paymask; + if ($self->paymask =~ /tokenized/) { + $lh->maketext('Tokenized Card'); + } else { + $lh->maketext('Card #') . $self->paymask; + } } elsif ( $self->payby eq 'CHEK' ) { #false laziness w/view/cust_main/payment_history.html::translate_payinfo |