summaryrefslogtreecommitdiff
path: root/httemplate/edit/cdr_type.cgi
blob: 5d2c66216dc6979980ee93ce9845380e839cffb4 (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
<% include('/elements/header.html', { title => 'CDR Types' } ) %>
<% include('/elements/menubar.html', 'Rate plans' => "${p}browse/rate.cgi" ) %>
<BR><% include('/elements/error.html') %>
<BR>
CDR types define types of phone usage for billing, such as voice 
calls and SMS messages.  Each CDR type must have a set of rates 
configured in the rate tables.
<BR>
<FORM METHOD="POST" ACTION="<% "${p}edit/process/cdr_type.cgi" %>">
<% include('/elements/auto-table.html',
  'header' => [ 'Type#', 'Name' ],
  'fields' => [ qw( cdrtypenum cdrtypename ) ],
  'data'   => \@data,
  ) %>
<INPUT TYPE="submit" VALUE="Apply changes"> </FORM> <BR>
<% include('/elements/footer.html') %>
<%init>

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

my @data = (
  map { [ $_->cdrtypenum, $_->cdrtypename ] }
  qsearch({ 
    'table' => 'cdr_type',
    'hashref' => {},
    'order_by' => 'ORDER BY cdrtypenum ASC'
  })
);

</%init>