summaryrefslogtreecommitdiff
path: root/httemplate/search/report_customer_accounting_summary.html
blob: cd8622ee3639f5dc6831e64b959a59754ff8795c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<% include('/elements/header.html', 'Customer Accounting Summary Report' ) %>

<FORM ACTION="customer_accounting_summary.html" METHOD="GET">

  <TABLE BGCOLOR="#cccccc" CELLSPACING=0>

    <% include( '/elements/tr-select-agent.html',
                 'curr_value'    => scalar( $cgi->param('agentnum') ),
                 'label'         => 'Agent ',
                 'disable_empty' => 0,
             )
    %>

    <% include( '/elements/tr-select-part_referral.html',
                 'curr_value'    => scalar( $cgi->param('refnum') ),
                 'label'         => 'Advertising source ',
                 'disable_empty' => 0,
                 'empty_label'   => 'all',
             )
    %>

    <% include('/elements/tr-select-from_to.html' ) %>
    
    <% include( '/elements/tr-select-cust_main-status.html',
		'label' => 'Customer Status'
    ) %>

    <& /elements/tr-select-cust_class.html,
                'label' => 'Customer Class',
                'field' => 'cust_classnum',
                'multiple' => 1,
    &>

    <& /elements/tr-checkbox.html,
        'label' => 'Separate setup fees',
        'field' => 'setuprecur',
        'value' => 1,
    &>

    <& /elements/tr-checkbox.html,
        'label'      => 'Show Gross &amp; Discounted',
        'field'      => 'grossdiscount',
        'value'      => 1,
        'curr_value' => defined($cgi->param('grossdiscount'))
                        ? scalar($cgi->param('grossdiscount'))
                        : 1, #default to on in v4
    &>
    
  </TABLE>

<BR>
<INPUT TYPE="submit" VALUE="Get Report">

</FORM>

<% include('/elements/footer.html') %>
<%init>

die "access denied"
  unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');

</%init>