X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Felements%2Freport_cust_pay_or_refund.html;h=f7a81a066c8a56c353f11359661a1bcf54718a13;hb=8807939a466d20893efc5655e61ac38f891d6d05;hp=0e04ab0dd35dab74bf317d04eccf532743b948b4;hpb=47835e6fb2ff9da30bd95ce10f1f22a3ce1cb8b5;p=freeside.git diff --git a/httemplate/search/elements/report_cust_pay_or_refund.html b/httemplate/search/elements/report_cust_pay_or_refund.html index 0e04ab0dd..f7a81a066 100644 --- a/httemplate/search/elements/report_cust_pay_or_refund.html +++ b/httemplate/search/elements/report_cust_pay_or_refund.html @@ -19,96 +19,62 @@ Examples: -
- <% mt('Search options') |h %> - | -
---|
<% ucfirst(PL($name_singular)) %> of type: | +<% mt('Card Last 4 #:') |h %> | - + |
---|---|---|
<% mt('Check #:') |h %> | +<% mt('Check #:') |h %> | - + |
- - <% mt('Transaction #') |h %> - - | +<% mt('Transaction #:') |h %> | - + |
<% mt('Payment') |h %> | +<% mt(ucfirst($name_singular). ' date') |h %> |
|
@@ -116,7 +82,7 @@ Examples:
% if ( $void ) {
<% mt('Voided') |h %> | +<% mt('Voided') |h %> |
+ + +<% emt('Customer search options') %> + + + <% emt('Display options') %> + @@ -156,7 +174,9 @@ my $table = 'cust_'.$opt{'thing'}; my $name_singular = $opt{'name_singular'}; die "access denied" - unless $FS::CurrentUser::CurrentUser->access_right('Financial reports'); + unless $FS::CurrentUser::CurrentUser->access_right('Basic payment and refund reports'); + +my $conf = new FS::Conf; my $void = $cgi->param('void') ? 1 : 0; my $unapplied = $cgi->param('unapplied') ? 1 : 0; @@ -166,4 +186,29 @@ my $title = $void ? "Voided $name_singular report" : "\u$name_singular report" ; $table .= '_void' if $void; +my $has_reason = dbdef->table($table)->column('reasonnum'); + +tie (my %payby, 'Tie::IxHash', + 'CARD-VisaMC' => 'credit card (Visa/MasterCard)', + 'CARD-Amex' => 'credit card (American Express)', + 'CARD-Discover' => 'credit card (Discover)', + 'CARD-Maestro' => 'credit card (Maestro/Switch/Solo)', + 'CARD-Tokenized' => 'credit card (Tokenized)', + + 'CHEK' => 'electronic check / ACH', + 'BILL' => 'check', + 'CASH' => 'cash', + 'PPAL' => 'Paypal', + 'APPL' => 'Apple Store', + 'ANRD' => 'Android Market', + + 'PREP' => 'prepaid card', + 'WIRE' => 'wire transfer', + 'WEST' => 'Western Union', + 'IDTP' => 'IDT Payment Services', + 'EDI' => 'Electronic Debit (EDI)', + 'MCRD' => 'manual credit card', + 'MCHK' => 'manual electronic check', +); + %init> |