fix unapplied payment report, RT#73048, fallout from #25944
[freeside.git] / httemplate / search / report_e911.html
1 <& /elements/header.html, 'E911 Fee Report' &>
2
3 <FORM ACTION="e911.html" METHOD="GET">
4
5 <TABLE BGCOLOR="#cccccc" CELLSPACING=0>
6
7   <& /elements/tr-select-agent.html,
8                curr_value     => scalar( $cgi->param('agentnum') ),
9                disable_empty  => 0,
10   &>
11
12   <& /elements/tr-input-beginning_ending.html &>
13
14   <& /elements/tr-select-part_pkg.html,
15                 field         => 'e911pkgpart',
16                 label         => 'E911 package',
17                 curr_value    => $e911pkgpart,
18                 disable_empty => 1,
19   &>
20
21 </TABLE>
22
23 <BR>
24 <INPUT TYPE="submit" VALUE="<% mt('Get Report') |h %>">
25
26 </FORM>
27
28 <& /elements/footer.html &>
29 <%init>
30
31 die "access denied"
32   unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
33
34 my $e911pkgpart;
35 # make an educated guess
36 my $e911_pkg = qsearchs('part_pkg', 
37                         { 'pkg' => { op=>'LIKE', value=>'%E911%' },
38                           'disabled' => '', } );
39 $e911pkgpart = $e911_pkg->pkgpart  if $e911_pkg;
40
41 </%init>