1 <& /elements/header.html, mt('Customer Report') &>
3 <FORM ACTION="cust_main.html" METHOD="GET">
4 <INPUT TYPE="hidden" NAME="magic" VALUE="bill">
6 <TABLE BGCOLOR="#cccccc" CELLSPACING=0>
9 <TH CLASS="background" COLSPAN=2 ALIGN="left"><FONT SIZE="+1"><% mt('Search options') |h %></FONT></TH>
12 <& /elements/tr-select-agent.html,
13 'curr_value' => scalar($cgi->param('agentnum')),
17 <& /elements/tr-select-cust_main-status.html,
18 'label' => emt('Status'),
21 <& /elements/tr-select-cust_class.html,
22 'label' => emt('Class'),
24 'pre_options' => [ '' => emt('(none)') ],
29 <TD ALIGN="right" VALIGN="center"><% mt('Address') |h %></TD>
30 <TD><INPUT TYPE="text" NAME="address" SIZE=54></TD>
34 <TD ALIGN="right" VALIGN="center"><% mt('Signup date') |h %></TD>
37 <& /elements/tr-input-beginning_ending.html,
38 prefix => 'signupdate',
45 <& /elements/tr-select-cust_tag.html,
51 <& /elements/tr-select-payby.html,
52 'payby_type' => 'cust',
58 <TD ALIGN="right"><% mt('Payment expiration before') |h %></TD>
60 <SELECT NAME="paydate_month" DISABLED>
61 % foreach my $month ( 1 .. 12 ) {
62 <OPTION VALUE="<% $month %>"><% $month %></OPTION>
66 <SELECT NAME="paydate_year" onChange="paydate_year_changed(this);">
67 <OPTION VALUE=""></OPTION>
68 % my $lastyear = (localtime(time))[5] + 1899;
69 % foreach my $year ( $lastyear .. $lastyear+12 ) {
70 <OPTION VALUE="<% $year %>"><% $year %></OPTION>
76 <SCRIPT TYPE="text/javascript">
77 function paydate_year_changed(what) {
78 var value = what.options[what.selectedIndex].value;
79 var month_select = what.form.paydate_month;
81 month_select.disabled = true;
83 month_select.disabled = false;
89 <TD ALIGN="right"><% mt('Invoice terms') |h %></TD>
91 <& /elements/select-terms.html,
92 'pre_options' => [ '' => emt('all') ],
93 'empty_value' => 'NULL',
98 <& /elements/tr-input-lessthan_greaterthan.html,
99 label => emt('Current balance'),
100 field => 'current_balance',
104 <TD ALIGN="right" VALIGN="center"><% mt('Include cancelled packages') |h %></TD>
105 <TD><INPUT TYPE="checkbox" NAME="cancelled_pkgs"></TD>
109 <TD ALIGN="right" VALIGN="center"><% mt('Without census tract') |h %></TD>
110 <TD><INPUT TYPE="checkbox" NAME="no_censustract"></TD>
113 % if ( $conf->exists('enable_taxproducts') ) {
116 <TD ALIGN="right" VALIGN="center"><% mt('With hardcoded tax location') |h %></TD>
117 <TD><INPUT TYPE="checkbox" NAME="with_geocode"></TD>
123 <TH CLASS="background" COLSPAN=2> </TH>
127 <TH CLASS="background" COLSPAN=2 ALIGN="left"><FONT SIZE="+1"><% mt('Display options') |h %></FONT></TH>
129 <& /elements/tr-select-cust-fields.html &>
132 <TD ALIGN="right" VALIGN="center"><% mt('Add package columns') |h %></TD>
133 <TD><INPUT TYPE="checkbox" NAME="flattened_pkgs"></TD>
138 <INPUT TYPE="submit" VALUE="<% mt('Get Report') |h %>">
142 <& /elements/footer.html &>
146 unless ( $FS::CurrentUser::CurrentUser->access_right('List customers') &&
147 $FS::CurrentUser::CurrentUser->access_right('List packages')
150 my $conf = new FS::Conf;