RT# 78547 Future autobill report - agent virt, dynamic title
[freeside.git] / httemplate / search / report_future_autobill.html
1 <%doc>
2
3 Display date selector for the future_autobill.html report
4
5 </%doc>
6 <% include('/elements/header.html', $report_title ) %>
7
8
9 % if ( FS::TaxEngine->new->info->{batch} ) {
10
11   <div style="font-color: red">
12   NOTE: This report is disabled due to tax engine configuration
13   </div>
14
15 % } else {
16
17   <FORM ACTION="future_autobill.html" METHOD="GET">
18   <TABLE>
19   <& /elements/tr-input-date-field.html,
20     {
21       name     => 'target_date',
22       value    => $target_date,
23       label    => emt('Target billing date').': ',
24       required => 1
25     }
26   &>
27
28   <% include('/elements/tr-select-agent.html',
29               'label'         => 'For agent: ',
30               'disable_empty' => 0,
31             )
32   %>
33
34   </TABLE>
35
36   <BR>
37
38   <INPUT TYPE="submit" VALUE="<% mt('Get Report') |h %>">
39
40   </FORM>
41
42 % }
43
44 <% include('/elements/footer.html') %>
45
46 <%init>
47 use FS::cust_payby;
48 use FS::CurrentUser;
49
50 die "access denied"
51   unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
52
53 my $target_date = DateTime->now->add(days => 1)->mdy('/');
54 my $report_title = FS::cust_payby->future_autobill_report_title;
55
56 </%init>
57