From bab8739d15d3656efbc2b8ee8f554da3fa01ad94 Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 30 Oct 2009 23:30:13 +0000 Subject: more reporting options for failed billing events, RT#6447 --- httemplate/search/cust_event.html | 15 +++++++- httemplate/search/report_cust_event.html | 66 ++++++++++++-------------------- 2 files changed, 38 insertions(+), 43 deletions(-) (limited to 'httemplate/search') diff --git a/httemplate/search/cust_event.html b/httemplate/search/cust_event.html index f8cf6b2a6..b22644efe 100644 --- a/httemplate/search/cust_event.html +++ b/httemplate/search/cust_event.html @@ -157,12 +157,18 @@ my $title = $cgi->param('failed') ? 'Failed billing events' : 'Billing events'; my %search = (); -my @scalars = qw ( agentnum custnum invnum pkgnum failed ); -for my $param ( @scalars ) { +my @scalars = qw( agentnum status custnum invnum pkgnum failed ); +for my $param (@scalars) { $search{$param} = scalar( $cgi->param($param) ) if $cgi->param($param); } +#lists +my @lists = qw( payby eventpart ); +foreach my $param (@lists) { + $search{$param} = [ $cgi->param($param) ]; +} + my($beginning, $ending) = FS::UI::Web::parse_beginning_ending($cgi); $search{'beginning'} = $beginning; $search{'ending'} = $ending; @@ -208,6 +214,11 @@ my $html_init = join("\n", map { } @params #keys %search ), + ( map { my $value = encode_entities( join(',', @{ $search{$_} } ) ); + qq(); + } + @lists + ), qq!! } qw( print_ email_ fax_ ) ). diff --git a/httemplate/search/report_cust_event.html b/httemplate/search/report_cust_event.html index e63b6375d..f77a072dc 100644 --- a/httemplate/search/report_cust_event.html +++ b/httemplate/search/report_cust_event.html @@ -6,52 +6,36 @@
- +
+ + + + <% include( '/elements/tr-select-agent.html', 'disable_empty'=>0 ) %> - + <% include( '/elements/tr-select-cust_main-status.html', + 'label' => 'Status' + ) + %> + + <% include( '/elements/tr-select-payby.html', + 'label' => 'Customer payment type', + 'payby_type' => 'cust', + 'multiple' => 1, + 'all_selected' => 1, + ) + %> + + <% include( '/elements/tr-select-part_event.html', + 'label' => 'Events', + 'multiple' => 1, + 'all_selected' => 1, + ) + %> + <% include( '/elements/tr-input-beginning_ending.html' ) %> - -
Search options

-- cgit v1.2.1