summaryrefslogtreecommitdiff
path: root/httemplate/search/report_cust_main-zip.html
blob: 19b7ecc91ab002a61e4491b1e433ee41a0e12c62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<% include('/elements/header.html', 'Zip code report') %>

    <FORM ACTION="cust_main-zip.html" METHOD="GET">

    <TABLE>

      <TR>
        <TD ALIGN="right">Billing or service zip</TD>
        <TD>
          <SELECT NAME="column">
            <OPTION VALUE="zip">Billing zip
            <OPTION VALUE="ship_zip">Service zip
          </SELECT>
        </TD>
      </TR>

      <TR>
        <TD ALIGN="right">Ignore +4 for US zip codes</TD>
        <TD><INPUT TYPE="checkbox" NAME="ignore_plus4" VALUE="yes" CHECKED> </TD>
      </TR>

      <TR>
        <TD ALIGN="right">Show customers with status:</TD>
        <TD>
          <SELECT NAME="status">
            <OPTION VALUE="">all
            <OPTION VALUE="prospect">prospect (no packages ever)
            <OPTION SELECTED VALUE="uncancel">all except cancelled
            <OPTION VALUE="active">active recurring packages
            <OPTION VALUE="susp">suspended
            <OPTION VALUE="cancel">cancelled
          </SELECT>
        </TD>
      </TR>

      <% include( '/elements/tr-select-agent.html',
                     'curr_value' => scalar( $cgi->param('agentnum') ),
                     'label'      => 'For agent: ',
                 )
      %>

    </TABLE>
    <BR><INPUT TYPE="submit" VALUE="Get Report">
    </FORM>

<% include('/elements/footer.html') %>
<%init>

die "access denied"
  unless $FS::CurrentUser::CurrentUser->access_right('List zip codes');

</%init>