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', 'Sales person commission report' ) %>
<FORM ACTION="sales_commission.html">
<TABLE BGCOLOR="#cccccc" CELLSPACING=0>
% if ( $curuser->report_salesnum ) {
<INPUT TYPE="hidden" NAME="agentnum" VALUE="<% $curuser->report_sales->agentnum %>">
<INPUT TYPE="hidden" NAME="salesnum" VALUE="<% $curuser->report_salesnum %>">
% } else {
<& /elements/tr-select-agent.html,
'onchange' => 'agent_changed(this)',
&>
<SCRIPT TYPE="text/javascript">
function agent_changed(what) {
salesnum_agentnum_changed(what);
}
<&| /elements/onload.js &>
agent_changed(document.getElementById('agentnum'))
</&>
</SCRIPT>
<& /elements/tr-select-sales.html,
'empty_label' => 'all',
&>
% }
<& /elements/tr-checkbox.html,
'label' => 'Customer sales person if there is no package sales person',
'field' => 'cust_main_sales',
'value' => 'Y',
&>
<& /elements/tr-checkbox.html,
'label' => 'Show paid sales only',
'field' => 'paid',
'value' => 'Y',
&>
<& /elements/tr-input-beginning_ending.html &>
</TABLE>
<BR>
<INPUT TYPE="submit" VALUE="Get Report">
<% include('/elements/footer.html') %>
<%init>
my $curuser = $FS::CurrentUser::CurrentUser;
die "access denied" unless $curuser->access_right('Financial reports');
</%init>
|