close table tag
[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 <!-- customer payment method i guess
36   <& /elements/tr-select-payby.html,
37                 label   => emt('Payment method:'),
38                 payby_type   => 'cust',
39                 multiple     => 1,
40                 all_selected => 1,
41   &>
42 -->
43
44 <TR>
45   <TD ALIGN="right"><INPUT TYPE="checkbox" NAME="nottax" VALUE="Y" onClick="nottax_changed(this)" onChange="nottax_change(thid)"></TD>
46   <TD><% mt('Omit taxes') |h %></TD>
47 </TD>
48
49 <TR>
50   <TD ALIGN="right"><INPUT TYPE="checkbox" NAME="istax" VALUE="Y" onClick="istax_changed(this)" onChange="istax_change(thid)"></TD>
51   <TD><% mt('Taxes only') |h %></TD>
52 </TD>
53
54 <!--
55 <TR>
56   <TD ALIGN="right"><INPUT TYPE="checkbox" NAME="credit" VALUE="Y"></TD>
57   <TD><% mt("Credit (what's this do?)") |h %></TD>
58 </TD>
59 -->
60
61 </TABLE>
62
63 <SCRIPT TYPE="text/javascript">
64   function nottax_changed (what) {
65     if (what.checked && what.form.istax.checked) {
66       what.form.istax.checked = false;
67     }
68   }
69   function istax_changed (what) {
70     if (what.checked && what.form.nottax.checked) {
71       what.form.nottax.checked = false;
72     }
73   }
74 </SCRIPT>
75
76 <BR>
77 <INPUT TYPE="submit" VALUE="<% mt('Get Report') |h %>">
78
79 </FORM>
80
81 <& /elements/footer.html &>
82 <%init>
83
84 #Financial reports?
85 die "access denied"
86   unless $FS::CurrentUser::CurrentUser->access_right('List invoices');
87
88 my $conf = new FS::Conf;
89
90 #other available params (cust_bill_pkg.cgi):
91 #
92 #distribute = 1
93 #
94 #(when nottax)
95 #  use_override something about part_pkg
96 #  classnum package class
97 #  taxclass / taxclassNULL
98 #  exempt_cust
99 #  exempt_pkg
100 #  region (country:state:county:city:district)
101 #  taxable
102 #  out (of taxable region)
103 #  usage
104 #(when istax)
105 #  locationtaxid (& district/city/ciounty/state)
106 #  out (of taxable region)
107 #  taxclassNULL
108 #  report_group (itemdesc)
109 #  itemdesc
110 #
111 #taxname/taxnameNULL cust_main_county
112 #taxnum cust_main_county
113 #credit (hmm need to look more at what this does)
114
115
116 </%init>
117