Optimize "Customer has a referring customer" condition, RT#74452
[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', 'Future Auto-Bill Transactions' ) %>
7
8
9 <FORM ACTION="future_autobill.html" METHOD="GET">
10 <TABLE>
11 <& /elements/tr-input-date-field.html,
12   {
13     name     => 'target_date',
14     value    => $target_date,
15     label    => emt('Target billing date').': ',
16     required => 1
17   }
18 &>
19
20 <& /elements/tr-checkbox.html,
21      'label' => emt('Multiple billing dates (slow)').': ',
22      'field' => 'multiple_billing_dates',
23      'value' => '1',
24 &>
25
26 </TABLE>
27
28 <BR>
29 <INPUT TYPE="submit" VALUE="<% mt('Get Report') |h %>">
30
31 </FORM>
32
33 <% include('/elements/footer.html') %>
34
35 <%init>
36
37 die "access denied"
38   unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
39
40 my $target_date = DateTime->from_epoch(epoch=>(time()+86400))->mdy('/');
41
42 </%init>