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)') ],
28 <& /elements/tr-select-part_referral.html,
29 'label' => emt('Advertising Source'),
35 <TD ALIGN="right" VALIGN="center"><% mt('Address') |h %></TD>
36 <TD><INPUT TYPE="text" NAME="address" SIZE=54></TD>
40 <TD ALIGN="right" VALIGN="center"><% mt('Signup date') |h %></TD>
43 <& /elements/tr-input-beginning_ending.html,
44 prefix => 'signupdate',
51 % if ( $conf->exists('cust_main-enable_birthdate') ) {
53 <TD ALIGN="right" VALIGN="center"><% mt('Date of Birth') |h %></TD>
56 <& /elements/tr-input-beginning_ending.html,
57 prefix => 'birthdate',
65 % if ( $conf->exists('cust_main-enable_spouse_birthdate') ) {
67 <TD ALIGN="right" VALIGN="center"><% mt('Spouse Date of Birth') |h %></TD>
70 <& /elements/tr-input-beginning_ending.html,
71 prefix => 'spouse_birthdate',
79 % if ( $conf->exists('cust_main-enable_anniversary_date') ) {
81 <TD ALIGN="right" VALIGN="center"><% mt('Anniversary Date') |h %></TD>
84 <& /elements/tr-input-beginning_ending.html,
85 prefix => 'anniversary_date',
93 <& /elements/tr-select-cust_tag.html,
99 <& /elements/tr-select-payby.html,
100 'payby_type' => 'cust',
106 <TD ALIGN="right"><% mt('Payment expiration before') |h %></TD>
108 <SELECT NAME="paydate_month" DISABLED>
109 % foreach my $month ( 1 .. 12 ) {
110 <OPTION VALUE="<% $month %>"><% $month %></OPTION>
114 <SELECT NAME="paydate_year" onChange="paydate_year_changed(this);">
115 <OPTION VALUE=""></OPTION>
116 % my $lastyear = (localtime(time))[5] + 1899;
117 % foreach my $year ( $lastyear .. $lastyear+12 ) {
118 <OPTION VALUE="<% $year %>"><% $year %></OPTION>
124 <SCRIPT TYPE="text/javascript">
125 function paydate_year_changed(what) {
126 var value = what.options[what.selectedIndex].value;
127 var month_select = what.form.paydate_month;
129 month_select.disabled = true;
131 month_select.disabled = false;
137 <TD ALIGN="right"><% mt('Invoice terms') |h %></TD>
139 <& /elements/select-terms.html,
140 'pre_options' => [ '' => emt('all') ],
141 'empty_value' => 'NULL',
146 <& /elements/tr-input-lessthan_greaterthan.html,
147 label => emt('Current balance'),
148 field => 'current_balance',
152 <TD ALIGN="right" VALIGN="center"><% mt('Without census tract') |h %></TD>
153 <TD><INPUT TYPE="checkbox" NAME="no_censustract"></TD>
156 % if ( $conf->exists('enable_taxproducts') ) {
159 <TD ALIGN="right" VALIGN="center"><% mt('With hardcoded tax location') |h %></TD>
160 <TD><INPUT TYPE="checkbox" NAME="with_geocode"></TD>
166 <TH CLASS="background" COLSPAN=2> </TH>
170 <TH CLASS="background" COLSPAN=2 ALIGN="left"><FONT SIZE="+1"><% mt('Display options') |h %></FONT></TH>
172 <& /elements/tr-select-cust-fields.html &>
175 <TD ALIGN="right" VALIGN="center"><% mt('Add package columns') |h %></TD>
176 <TD><INPUT TYPE="checkbox" NAME="flattened_pkgs"></TD>
180 <TD ALIGN="right" VALIGN="center"><% mt('Include cancelled packages') |h %></TD>
181 <TD><INPUT TYPE="checkbox" NAME="cancelled_pkgs"></TD>
187 <INPUT TYPE="submit" VALUE="<% mt('Get Report') |h %>">
191 <& /elements/footer.html &>
195 unless $FS::CurrentUser::CurrentUser->access_right('Advanced customer search');
197 my $conf = new FS::Conf;