Optimize "Customer has a referring customer" condition, RT#74452
[freeside.git] / httemplate / graph / report_money_time_daily.html
1 <% include('/elements/header.html', 'Daily Sales, Credits and Receipts Summary' ) %>
2
3 <FORM ACTION="money_time_daily.cgi" METHOD="GET">
4
5 <TABLE>
6
7 <& /elements/tr-input-beginning_ending.html,
8                 'datesrequired' => 1,
9                 'from' => $from,
10                 'to' => time,
11 &>
12
13 <% include('/elements/tr-select-agent.html',
14              'label'         => 'For agent: ',
15              'disable_empty' => 0,
16           )
17 %>
18
19 <& /elements/tr-select-cust_class.html,
20     'field'    => 'cust_classnum',
21     'multiple' => 1,
22 &>
23
24 <tr>
25   <td />
26   <td>
27     <& /elements/checkbox.html,
28       field => 'exclude_discount',
29       value => 1,
30       curr_value => 0,
31     &>
32     <% emt('Exclude discounts from total sales') %>
33   </td>
34 </TR>
35
36 </TABLE>
37
38 <BR><INPUT TYPE="submit" VALUE="Display">
39 </FORM>
40
41 <% include('/elements/footer.html') %>
42 <%init>
43
44 my $from = time - 30*86400;
45
46 die "access denied"
47   unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
48
49 </%init>