Option to ignore old CDRs, RT#81480
[freeside.git] / httemplate / browse / did_vendor.html
1 <% include( 'elements/browse.html',
2                  'title'       => 'Bulk DID Vendors',
3                  'html_init'   => $html_init,
4                  'name'        => 'bulk DID vendors',
5                  'disableable' => 0,
6                  'query'       => { 'table'     => 'did_vendor',
7                                     'hashref'   => {},
8                                     'order_by' => 'ORDER BY vendornum',
9                                   },
10                  'count_query' => $count_query,
11                  'header'      => $header,
12                  'fields'      => $fields,
13                  'links'       => $links,
14              )
15 %>
16 <%init>
17
18 die "access denied"
19   unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
20
21 my $html_init = 
22   qq!<A HREF="${p}edit/did_vendor.html"><I>Add a bulk DID vendor</I></A><BR><BR>!;
23
24 my $count_query = 'SELECT COUNT(*) FROM did_vendor';
25
26 my $link = [ $p.'edit/did_vendor.html?', 'vendornum' ];
27
28 my $header = [ '#', 'Vendor' ];
29 my $fields = [ 'vendornum', 'vendorname' ];
30 my $links  = [ $link, $link ];
31
32 </%init>