1 <& /elements/header.html, mt('Line item report') &>
3 <FORM ACTION="cust_bill_pkg.cgi" METHOD="GET">
4 <!--<INPUT TYPE="hidden" NAME="magic" VALUE="_date">-->
6 <TABLE BGCOLOR="#cccccc" CELLSPACING=0>
8 <& /elements/tr-select-agent.html,
9 curr_value => scalar( $cgi->param('agentnum') ),
10 #label => emt('Line items for agent: '),
14 <& /elements/tr-select-cust_main-status.html,
15 label => emt('Customer status'),
18 <& /elements/tr-select-cust_class.html,
19 'label' => emt('Customer class'),
20 'field' => 'cust_classnum',
22 'pre_options' => [ '' => emt('(none)') ],
26 <& /elements/tr-input-beginning_ending.html &>
28 <!-- needs support in cust_bill_pkg.cgi
29 <& /elements/tr-input-lessthan_greaterthan.html,
30 label => emt('Amount'),
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>
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>
47 <TD ALIGN="right"><INPUT TYPE="checkbox" NAME="credit" VALUE="Y"></TD>
48 <TD><% mt("Credit (what's this do?)") |h %></TD>
54 <SCRIPT TYPE="text/javascript">
55 function nottax_changed (what) {
56 if (what.checked && what.form.istax.checked) {
57 what.form.istax.checked = false;
60 function istax_changed (what) {
61 if (what.checked && what.form.nottax.checked) {
62 what.form.nottax.checked = false;
68 <INPUT TYPE="submit" VALUE="<% mt('Get Report') |h %>">
72 <& /elements/footer.html &>
77 unless $FS::CurrentUser::CurrentUser->access_right('List invoices');
79 my $conf = new FS::Conf;
81 #other available params (cust_bill_pkg.cgi):
86 # use_override something about part_pkg
87 # classnum package class
88 # taxclass / taxclassNULL
91 # region (country:state:county:city:district)
93 # out (of taxable region)
96 # locationtaxid (& district/city/ciounty/state)
97 # out (of taxable region)
99 # report_group (itemdesc)
102 #taxname/taxnameNULL cust_main_county
103 #taxnum cust_main_county
104 #credit (hmm need to look more at what this does)