summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2015-10-06 01:46:31 -0500
committerJonathan Prykop <jonathan@freeside.biz>2015-10-09 23:36:49 -0500
commit5e6b981ccafac97a17d64924ef770c471ca28ab0 (patch)
treecd3c33f7eee4185ec28a254829564d225f03e90a /FS
parentbdbda2196d839c13a25da3ec5569b93d121d10f3 (diff)
RT#37038 Add Card Type Name to Payment Report
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/payinfo_Mixin.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/FS/FS/payinfo_Mixin.pm b/FS/FS/payinfo_Mixin.pm
index 7025e4e38..023aacdec 100644
--- a/FS/FS/payinfo_Mixin.pm
+++ b/FS/FS/payinfo_Mixin.pm
@@ -243,7 +243,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