X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Felements%2Freport_cust_pay_or_refund.html;h=f7a81a066c8a56c353f11359661a1bcf54718a13;hb=929783d1045757abbe5c84ff2439547b0f8eca23;hp=872031de50a65292526466e7f78e4548d85b3e74;hpb=b4c6c58d3f10be9fcd18a449afd3c0d77fb67137;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 872031de5..f7a81a066 100644 --- a/httemplate/search/elements/report_cust_pay_or_refund.html +++ b/httemplate/search/elements/report_cust_pay_or_refund.html @@ -19,61 +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 %> |
|
@@ -81,7 +82,7 @@ Examples:
% if ( $void ) {
<% mt('Voided') |h %> | +<% mt('Voided') |h %> |
+ + +<% emt('Customer search options') %> + + + <% emt('Display options') %> + @@ -121,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; @@ -131,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> |