Merge branch 'master' of git.freeside.biz:/home/git/freeside
[freeside.git] / httemplate / search / report_customer_accounting_summary.html
1 <% include('/elements/header.html', 'Customer Accounting Summary Report' ) %>
2
3 <FORM ACTION="customer_accounting_summary.html" METHOD="GET">
4
5   <TABLE BGCOLOR="#cccccc" CELLSPACING=0>
6
7     <% include( '/elements/tr-select-agent.html',
8                  'curr_value'    => scalar( $cgi->param('agentnum') ),
9                  'label'         => 'Agent ',
10                  'disable_empty' => 0,
11              )
12     %>
13
14     <% include( '/elements/tr-select-part_referral.html',
15                  'curr_value'    => scalar( $cgi->param('refnum') ),
16                  'label'         => 'Advertising source ',
17                  'disable_empty' => 0,
18                  'empty_label'   => 'all',
19              )
20     %>
21
22     <% include('/elements/tr-select-from_to.html' ) %>
23     
24     <% include( '/elements/tr-select-cust_main-status.html',
25                 'label' => 'Customer Status'
26     ) %>
27
28     <& /elements/tr-select-cust_class.html,
29                 'label' => 'Customer Class',
30                 'field' => 'cust_classnum',
31                 'multiple' => 1,
32     &>
33
34     <& /elements/tr-checkbox.html,
35         'label' => 'Separate setup fees',
36         'field' => 'setuprecur',
37         'value' => 1,
38     &>
39
40     <& /elements/tr-checkbox.html,
41         'label'      => 'Show Gross &amp; Discounted',
42         'field'      => 'grossdiscount',
43         'value'      => 1,
44         'curr_value' => defined($cgi->param('grossdiscount'))
45                         ? scalar($cgi->param('grossdiscount'))
46                         : 1, #default to on in v4
47     &>
48     
49   </TABLE>
50
51 <BR>
52 <INPUT TYPE="submit" VALUE="Get Report">
53
54 </FORM>
55
56 <% include('/elements/footer.html') %>
57 <%init>
58
59 die "access denied"
60   unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
61
62 </%init>