summaryrefslogtreecommitdiff
path: root/httemplate/search/report_cust_main-zip.html
blob: 00cb9ed2c0121ce16f55584e50eba8e5d0c3ab01 (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<% 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>

      <TR>
        <TD ALIGN="right">Limit to customers with provisioned service</TD>
        <TD>
          <SELECT NAME="svcdb">
            <OPTION VALUE="">(no)
            <OPTION VALUE="svc_acct">Account (svc_acct)
            <OPTION VALUE="svc_broadband">Broadband service (svc_broadband)
            <OPTION VALUE="svc_domain">Domain (svc_domain)
            <OPTION VALUE="svc_external">External service (svc_external)
            <OPTION VALUE="svc_forward">Mail forward (svc_foward)
            <OPTION VALUE="svc_pbx">PBX (svc_pbx)
            <OPTION VALUE="svc_phone">Phone number (svc_phone)
            <OPTION VALUE="svc_www">Hosting (svc_www)
          </SELECT>
        </TD>
      </TR>

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

    </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>