X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Frate_region.cgi;h=9ca3a3569a67aae2e48d91d1fdaebf3211daf096;hb=5fa9ce1b7c8b934e96a6a2f850a4e788eb76f495;hp=04f285f3709774d53a3afb9a80099f3b423a44e7;hpb=c648976f0b7975f2328ebd7ba8c711fad0ca4195;p=freeside.git
diff --git a/httemplate/edit/rate_region.cgi b/httemplate/edit/rate_region.cgi
index 04f285f37..9ca3a3569 100644
--- a/httemplate/edit/rate_region.cgi
+++ b/httemplate/edit/rate_region.cgi
@@ -29,7 +29,7 @@
(comma-separated)
-
+
|
@@ -57,6 +57,9 @@
Granularity
|
+
+ Usage class
+ |
% foreach my $rate ( qsearch('rate', {}) ) {
@@ -85,7 +88,7 @@
- $min_charge ) %>">
+ $min_charge |h %>">
|
@@ -96,6 +99,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 ),
+ )
+ %>
+ |
+
% }
@@ -132,13 +148,7 @@ my $action = $rate_region->regionnum ? 'Edit' : 'Add';
my $p1 = popurl(1);
-tie my %granularity, 'Tie::IxHash',
- '1', => '1 second',
- '6' => '6 second',
- '30' => '30 second', # '1/2 minute',
- '60' => 'minute',
- '0' => 'call',
-;
+tie my %granularity, 'Tie::IxHash', FS::rate_detail::granularities();
my @rate_prefix = $rate_region->rate_prefix;
my $countrycode = '';