X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Felements%2Freport_cust_pay_or_refund.html;h=fc0db63b470f896e110ab212f547ec9bc57412c4;hb=a941bc2ebde67e4bb0be5d6516cf1b09c092e8a1;hp=70727c00774a81c7e2c21c44bbe5a81df3cc05b0;hpb=09b6319a486ae60d2f86b2e46acce96bf5aa5ffb;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 70727c007..fc0db63b4 100644
--- a/httemplate/search/elements/report_cust_pay_or_refund.html
+++ b/httemplate/search/elements/report_cust_pay_or_refund.html
@@ -23,19 +23,27 @@ Examples:
- <% mt('Payment search options') |h %>
+ <% mt('[_1] search options', ucfirst($name_singular)) |h %>
<& /elements/tr-select.html,
label => ucfirst(PL($name_singular)) . ' of type:',
field => 'payby',
- options => [ keys(\%payby) ],
+ options => [ keys %payby ],
labels => \%payby,
multiple => 1,
- size => 16
+ size => 18,
&>
+% if (substr($conf->config('card_masking_method'), -5) eq 'last4' || !$conf->config('card_masking_method')) {
+
+ <% mt('Card Last 4 #:') |h %>
+
+
+
+
+% }
<% mt('Check #:') |h %>
@@ -51,6 +59,20 @@ 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'),
+ &>
+% }
+
<% mt(ucfirst($name_singular). ' date') |h %>
@@ -105,6 +127,10 @@ Examples:
+ <& /elements/tr-select-cust_tag.html,
+ 'custnum' => $opt{'custnum'},
+ &>
+
<& /elements/tr-select-agent.html,
'curr_value' => scalar($cgi->param('agentnum')),
'label' => emt('Agent'),
@@ -118,6 +144,8 @@ Examples:
'pre_options' => [ 0 => emt('(none)') ],
&>
+ <& options_cust_location.html &>
+
% if ( $table eq 'cust_pay' ) {
@@ -137,6 +165,12 @@ Examples:
'value' => 1,
&>
+ <& /elements/tr-checkbox.html,
+ 'label' => emt('Include order number'),
+ 'field' => 'show_order_number',
+ 'value' => 1,
+ &>
+
% }
@@ -166,6 +200,8 @@ 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)',
@@ -183,6 +219,7 @@ tie (my %payby, 'Tie::IxHash',
'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',