2 '/elements/header.html',
3 ( $cgi->param('failed') ? 'Failed billing events' : 'Billing events' ),
7 <FORM ACTION="cust_event.html" METHOD="GET">
8 <TABLE BGCOLOR="#cccccc" CELLSPACING=0>
11 <TH CLASS="background" COLSPAN=2 ALIGN="left"><FONT SIZE="+1">Search options</FONT></TH>
14 <% include( '/elements/tr-select-agent.html', 'disable_empty'=>0 ) %>
16 <% include( '/elements/tr-select-cust_main-status.html',
17 'label' => 'Customer status',
18 # this field is just called 'status'
22 <% include( '/elements/tr-select-payby.html',
23 'label' => 'Customer payment type',
24 'payby_type' => 'cust',
30 <% include( '/elements/tr-select-part_event.html',
37 % if ( $cgi->param('failed') ) {
38 <& /elements/tr-fixed.html,
39 'label' => 'Event status',
40 'field' => 'event_status',
41 'curr_value' => 'failed',
42 'formatted_value' => 'Failed',
46 % # 'initial' is not on here, since nobody needs to see it. also,
47 % # 'done_Y' and 'done_N' are shorthand for "done, and no_action
48 % # is null" and "done, and no_action = 'Y'".
49 <& /elements/tr-select.html,
50 'label' => 'Event status',
51 'field' => 'event_status',
55 'options' => [ qw( done_Y done_N failed new locked ) ],
56 'option_labels' => { done_Y => 'Completed',
57 done_N => 'Completed, no action taken',
59 new => 'Not yet processed',
65 <% include( '/elements/tr-input-beginning_ending.html' ) %>
68 <BR><INPUT TYPE="submit" VALUE="Get Report">
71 <% include('/elements/footer.html') %>
75 unless $FS::CurrentUser::CurrentUser->access_right('Billing event reports');