2 '/elements/header.html',
3 ( $cgi->param('failed') ? 'Failed billing events' : 'Billing events' ),
7 <FORM ACTION="cust_event.html" METHOD="GET">
9 <FONT CLASS="fsinnerbox-title"><% emt('Search options') %></FONT>
10 <TABLE CLASS="fsinnerbox">
12 <% include( '/elements/tr-select-agent.html', 'disable_empty'=>0 ) %>
14 <% include( '/elements/tr-select-cust_main-status.html',
15 'label' => 'Customer status',
16 # this field is just called 'status'
20 <% include( '/elements/tr-select-part_event.html',
27 % if ( $cgi->param('failed') ) {
28 <& /elements/tr-fixed.html,
29 'label' => 'Event status',
30 'field' => 'event_status',
31 'curr_value' => 'failed',
32 'formatted_value' => 'Failed',
36 % # 'initial' is not on here, since nobody needs to see it. also,
37 % # 'done_Y' = "done, and no_action is null, and statustext is null"
38 % # 'done_S' = "done, and no_action is null, and statustext is not null"
39 % # 'done_N' = "done, and no_action = 'Y'".
40 <& /elements/tr-select.html,
41 'label' => 'Event status',
42 'field' => 'event_status',
46 'options' => [ qw( done_Y done_S done_N failed new locked ) ],
47 'option_labels' => { done_Y => 'Completed normally',
48 done_S => 'Completed, with an error',
49 done_N => 'Completed, no action taken',
51 new => 'Not yet processed',
57 <% include( '/elements/tr-input-beginning_ending.html' ) %>
60 <BR><INPUT TYPE="submit" VALUE="Get Report">
63 <% include('/elements/footer.html') %>
67 unless $FS::CurrentUser::CurrentUser->access_right('Billing event reports');