Revert "RT# 39340 - configured the minimal selfservice to get mac address from radius...
[freeside.git] / httemplate / search / report_cust_bill_pkg.html
1 <& /elements/header.html, mt('Line item report') &>
2
3 <FORM ACTION="cust_bill_pkg.cgi" METHOD="GET">
4 <!--<INPUT TYPE="hidden" NAME="magic" VALUE="_date">-->
5
6 <TABLE BGCOLOR="#cccccc" CELLSPACING=0>
7
8 <& /elements/tr-select-agent.html,
9      curr_value    => scalar( $cgi->param('agentnum') ),
10      #label         => emt('Line items for agent: '),
11      disable_empty => 0,
12 &>
13
14 <& /elements/tr-select-cust_main-status.html,
15      label => emt('Customer status'),
16 &>
17
18 <& /elements/tr-select-cust_class.html,
19      'label'        => emt('Customer class'),
20      'field'        => 'cust_classnum',
21      'multiple'     => 1,
22      'pre_options'  => [ '' => emt('(none)') ],
23      'all_selected' => 1,
24 &>
25
26 <& /elements/tr-input-beginning_ending.html &>
27
28 <!-- needs support in cust_bill_pkg.cgi
29 <& /elements/tr-input-lessthan_greaterthan.html,
30      label   => emt('Amount'),
31      field   => 'amount',
32 &>
33 -->
34
35 <TR>
36   <TD ALIGN="right"><INPUT TYPE="checkbox" NAME="nottax" VALUE="Y" onClick="nottax_changed(this)" onChange="nottax_change(thid)"></TD>
37   <TD><% mt('Omit taxes') |h %></TD>
38 </TD>
39
40 <TR>
41   <TD ALIGN="right"><INPUT TYPE="checkbox" NAME="istax" VALUE="Y" onClick="istax_changed(this)" onChange="istax_change(thid)"></TD>
42   <TD><% mt('Taxes only') |h %></TD>
43 </TD>
44
45 <!--
46 <TR>
47   <TD ALIGN="right"><INPUT TYPE="checkbox" NAME="credit" VALUE="Y"></TD>
48   <TD><% mt("Credit (what's this do?)") |h %></TD>
49 </TD>
50 -->
51
52 </TABLE>
53
54 <SCRIPT TYPE="text/javascript">
55   function nottax_changed (what) {
56     if (what.checked && what.form.istax.checked) {
57       what.form.istax.checked = false;
58     }
59   }
60   function istax_changed (what) {
61     if (what.checked && what.form.nottax.checked) {
62       what.form.nottax.checked = false;
63     }
64   }
65 </SCRIPT>
66
67 <BR>
68 <INPUT TYPE="submit" VALUE="<% mt('Get Report') |h %>">
69
70 </FORM>
71
72 <& /elements/footer.html &>
73 <%init>
74
75 #Financial reports?
76 die "access denied"
77   unless $FS::CurrentUser::CurrentUser->access_right('List invoices');
78
79 my $conf = new FS::Conf;
80
81 #other available params (cust_bill_pkg.cgi):
82 #
83 #distribute = 1
84 #
85 #(when nottax)
86 #  use_override something about part_pkg
87 #  classnum package class
88 #  taxclass / taxclassNULL
89 #  exempt_cust
90 #  exempt_pkg
91 #  region (country:state:county:city:district)
92 #  taxable
93 #  out (of taxable region)
94 #  usage
95 #(when istax)
96 #  locationtaxid (& district/city/ciounty/state)
97 #  out (of taxable region)
98 #  taxclassNULL
99 #  report_group (itemdesc)
100 #  itemdesc
101 #
102 #taxname/taxnameNULL cust_main_county
103 #taxnum cust_main_county
104 #credit (hmm need to look more at what this does)
105
106
107 </%init>
108