X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Felements%2Freport_cust_pay_or_refund.html;h=f7a81a066c8a56c353f11359661a1bcf54718a13;hb=793956b8a0c19d7d39103e94235b0ca13f0f3e84;hp=a2b90b47db97f0a6c800907cbb33c03d6022795d;hpb=fb4ab1073f0d15d660c6cdc4e07afebf68ef3924;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 a2b90b47d..f7a81a066 100644 --- a/httemplate/search/elements/report_cust_pay_or_refund.html +++ b/httemplate/search/elements/report_cust_pay_or_refund.html @@ -19,71 +19,62 @@ Examples: -
- <% mt('Search options') |h %> - | +<% mt('Card Last 4 #:') |h %> | ++ + | |
---|---|---|---|
<% ucfirst(PL($name_singular)) %> of type: | +<% mt('Check #:') |h %> | - + | |
<% mt('Check #:') |h %> | +<% mt('Transaction #:') |h %> | - + | |
<% mt('Payment') |h %> | +<% mt(ucfirst($name_singular). ' date') |h %> |
|
@@ -91,7 +82,7 @@ Examples:
% if ( $void ) {
|
<% mt('Voided') |h %> | +<% mt('Voided') |h %> |
+ + +<% emt('Customer search options') %> + + + <% emt('Display options') %> + @@ -131,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; @@ -141,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> |