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'),
35 <!-- customer payment method i guess
36 <& /elements/tr-select-payby.html,
37 label => emt('Payment method:'),
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>
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>
56 <TD ALIGN="right"><INPUT TYPE="checkbox" NAME="credit" VALUE="Y"></TD>
57 <TD><% mt("Credit (what's this do?)") |h %></TD>
63 <SCRIPT TYPE="text/javascript">
64 function nottax_changed (what) {
65 if (what.checked && what.form.istax.checked) {
66 what.form.istax.checked = false;
69 function istax_changed (what) {
70 if (what.checked && what.form.nottax.checked) {
71 what.form.nottax.checked = false;
77 <INPUT TYPE="submit" VALUE="<% mt('Get Report') |h %>">
81 <& /elements/footer.html &>
86 unless $FS::CurrentUser::CurrentUser->access_right('List invoices');
88 my $conf = new FS::Conf;
90 #other available params (cust_bill_pkg.cgi):
95 # use_override something about part_pkg
96 # classnum package class
97 # taxclass / taxclassNULL
100 # region (country:state:county:city:district)
102 # out (of taxable region)
105 # locationtaxid (& district/city/ciounty/state)
106 # out (of taxable region)
108 # report_group (itemdesc)
111 #taxname/taxnameNULL cust_main_county
112 #taxnum cust_main_county
113 #credit (hmm need to look more at what this does)