diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2015-10-06 01:46:31 -0500 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2015-10-09 23:36:49 -0500 |
commit | 5e6b981ccafac97a17d64924ef770c471ca28ab0 (patch) | |
tree | cd3c33f7eee4185ec28a254829564d225f03e90a /httemplate | |
parent | bdbda2196d839c13a25da3ec5569b93d121d10f3 (diff) |
RT#37038 Add Card Type Name to Payment Report
Diffstat (limited to 'httemplate')
-rwxr-xr-x | httemplate/search/cust_pay.html | 1 | ||||
-rwxr-xr-x | httemplate/search/elements/cust_pay_or_refund.html | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/httemplate/search/cust_pay.html b/httemplate/search/cust_pay.html index 03474c1ef..e466f6afa 100755 --- a/httemplate/search/cust_pay.html +++ b/httemplate/search/cust_pay.html @@ -3,4 +3,5 @@ 'amount_field' => 'paid', 'name_singular' => emt('payment'), 'name_verb' => emt('paid'), + 'show_card_type' => 1, &> diff --git a/httemplate/search/elements/cust_pay_or_refund.html b/httemplate/search/elements/cust_pay_or_refund.html index 5808e5f3e..1fea67c19 100755 --- a/httemplate/search/elements/cust_pay_or_refund.html +++ b/httemplate/search/elements/cust_pay_or_refund.html @@ -184,6 +184,16 @@ push @fields, 'payby_payinfo_pretty', push @link_onclicks, $sub_receipt, ''; push @sort_fields, 'paysort', $amount_field; +if ($opt{'show_card_type'}) { + push @header, emt('Card Type'); + $align .= 'r'; + push @links, ''; + push @fields, sub { + (($_[0]->payby eq 'CARD') && ($_[0]->paymask !~ /N\/A/)) ? cardtype($_[0]->paymask) : '' + }; + push @sort_fields, ''; +} + if ( $unapplied ) { push @header, emt('Unapplied'); $align .= 'r'; |