<TABLE>
-<% include( '/elements/tr-input-beginning_ending.html' ) %>
+<& /elements/tr-input-beginning_ending.html,
+ 'datesrequired' => 1,
+ 'from' => $from,
+ 'to' => time,
+&>
<% include('/elements/tr-select-agent.html',
'label' => 'For agent: ',
)
%>
+<& /elements/tr-select-cust_class.html,
+ 'field' => 'cust_classnum',
+ 'multiple' => 1,
+&>
+
+<tr>
+ <td />
+ <td>
+ <& /elements/checkbox.html,
+ field => 'exclude_discount',
+ value => 1,
+ curr_value => 0,
+ &>
+ <% emt('Exclude discounts from total sales') %>
+ </td>
+</TR>
+
</TABLE>
<BR><INPUT TYPE="submit" VALUE="Display">
<% include('/elements/footer.html') %>
<%init>
+my $from = time - 30*86400;
+
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');