X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Frate_region.cgi;h=f77c0dbe770b403d385627fa025f866657be140f;hb=b4f0a47a6893de5f6b11f32307a0195f43a359fb;hp=c58fc80656885dddd7bd351d2d46d3022f27c195;hpb=d9a8f186ad87e9b19da7383f88ab5eb0b614a138;p=freeside.git
diff --git a/httemplate/edit/rate_region.cgi b/httemplate/edit/rate_region.cgi
index c58fc8065..f77c0dbe7 100644
--- a/httemplate/edit/rate_region.cgi
+++ b/httemplate/edit/rate_region.cgi
@@ -29,7 +29,7 @@
(comma-separated)
-
+
|
@@ -51,12 +51,21 @@
Included minutes/calls
|
+
+ Connection charge
+ |
+
+ Connection charge for
+ |
Charge per minute/call
|
Granularity
|
+
+ Usage class
+ |
% foreach my $rate ( qsearch('rate', {}) ) {
@@ -85,7 +94,20 @@
- $min_charge ) %>">
+ <%$money_char%>conn_charge |h %>">
+ |
+
+
+ |
+
+
+ <%$money_char%>min_charge |h %>">
|
@@ -96,6 +118,19 @@
|
+
+ <% include( '/elements/select-table.html',
+ 'element_name' => "classnum$n",
+ 'table' => 'usage_class',
+ 'name_col' => 'classname',
+ 'empty_label' => '(default)',
+ 'hashref' => { disabled => '' },
+ 'curr_value' => ( $cgi->param("classnum$n") ||
+ $rate_detail->classnum ),
+ )
+ %>
+ |
+
% }
@@ -109,12 +144,19 @@
<% include('/elements/footer.html') %>
+<%once>
+tie my %conn_secs, 'Tie::IxHash', FS::rate_detail::conn_secs();
+
+%once>
<%init>
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
+my $conf = new FS::Conf;
+my $money_char = $conf->config('money_char') || '$';
+
my $rate_region;
if ( $cgi->param('error') ) {
$rate_region = new FS::rate_region ( {