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