X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Felements%2Freport_cust_pay_or_refund.html;h=bff470a691f7d5fc2bea94df8a63942a53c6aab6;hb=d10a3e73a1c3e46f2c784d2aa4e7b3e621c336e2;hp=9c4ca2761db3efdd97dc5d8e0a60aadf3c2aea42;hpb=d03ab0df1ccbd3bdf54b3a85391879906d499097;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 9c4ca2761..bff470a69 100644 --- a/httemplate/search/elements/report_cust_pay_or_refund.html +++ b/httemplate/search/elements/report_cust_pay_or_refund.html @@ -19,53 +19,34 @@ Examples: - - - - - + <% emt('[_1] search options', ucfirst($name_singular)) %> +
- <% mt('Payment search options') |h %> -
+ + <& /elements/tr-select.html, + label => ucfirst(PL($name_singular)) . ' of type:', + field => 'payby', + options => [ keys %payby ], + labels => \%payby, + multiple => 1, + size => 18, + &> +% if (substr($conf->config('card_masking_method'), -5) eq 'last4' || !$conf->config('card_masking_method')) { - + - +% } - + - + @@ -73,8 +54,22 @@ Examples: <& /elements/tr-select-user.html &> +% if ( $has_reason ) { +% # limit to reasons that are in use for the table being reported on +% # (maybe order by count(*) desc?) + <& /elements/tr-select-table.html, + label => emt('Reason'), + field => 'reasonnum', + id => 'reasonnum', + table => 'reason', + name_col => 'reason', + extra_sql => " WHERE EXISTS(SELECT 1 FROM $table WHERE $table.reasonnum = reason.reasonnum) ", + empty_label => emt('any'), + &> +% } + - +
<% ucfirst(PL($name_singular)) %> of type: <% mt('Card Last 4 #:') |h %> - +
<% mt('Check #:') |h %> <% mt('Check #:') |h %>
<% mt('Transaction #:') |h %> <% mt('Transaction #:') |h %>
<% mt(ucfirst($name_singular). ' date') |h %><% mt(ucfirst($name_singular). ' date') |h %> <& /elements/tr-input-beginning_ending.html, @@ -87,7 +82,7 @@ Examples: % if ( $void ) { - +
<% mt('Voided') |h %><% mt('Voided') |h %> <& /elements/tr-input-beginning_ending.html, @@ -119,13 +114,12 @@ Examples:
-
+<% emt('Customer search options') %> +
- - - + <& /elements/tr-select-cust_tag.html, + 'custnum' => $opt{'custnum'}, + &> <& /elements/tr-select-agent.html, 'curr_value' => scalar($cgi->param('agentnum')), @@ -137,22 +131,19 @@ Examples: 'label' => emt('Customer class'), 'field' => 'cust_classnum', 'multiple' => 1, - 'pre_options' => [ '' => emt('(none)') ], - 'all_selected' => 1, + 'pre_options' => [ 0 => emt('(none)') ], &> + <& options_cust_location.html &> +
- <% mt('Customer search options') |h %> -
% if ( $table eq 'cust_pay' ) {
- - - - + <% emt('Display options') %> +
- <% mt('Display options') |h %> -
<& /elements/tr-checkbox.html, 'label' => emt('Include tax names'), @@ -160,6 +151,12 @@ Examples: 'value' => 1, &> + <& /elements/tr-checkbox.html, + 'label' => emt('Include order number'), + 'field' => 'show_order_number', + 'value' => 1, + &> +
% } @@ -189,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', +); +