summaryrefslogtreecommitdiff
path: root/httemplate/search/report_employee_audit.html
blob: 6008e1caab77dbd1e926601b578d0c7e913c6e0d (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
<% include('/elements/header.html', 'Employee audit report' ) %>

<FORM ACTION="employee_audit.html" METHOD="GET">
    <TABLE>
        <% include( '/elements/tr-select-user.html' ) %>
        <% include( '/elements/tr-input-beginning_ending.html', ) %>

        <% include( '/elements/tr-td-label.html', label => 'Include:' ) %>
        <TD>
            <% map { include('/elements/checkbox.html', 
                                field => $_, id => $_, postfix => $tables{$_} )
                        . "<BR>"
                   } keys(%tables)
            %>
        </TD>
        </TR>

    </TABLE>
<INPUT TYPE="submit" VALUE="Get Report">
</FORM>

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

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

my %tables = (
    cust_pay        => 'Payments',
    cust_refund     => 'Refunds',
    cust_credit     => 'Credits',
    cust_bill       => 'Invoices',
    cust_main       => 'Customers',
    cust_pkg        => 'Packages',
    cust_main_invoice => 'Customer invoice destinations',
    cust_pkg_discount => 'Discount applications',
);

</%init>