X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Frate.cgi;h=3443f81d4928580044f0216e07e2afd4dc737f48;hb=55a68e4aabe10db4d9c3ab1bb8befd2f9f4b9008;hp=4fdc837bb1252a76abb874a1661ba4538c8d732d;hpb=584caeef2ac90ab10fc028a7928b9ebc53e8b33a;p=freeside.git diff --git a/httemplate/edit/rate.cgi b/httemplate/edit/rate.cgi index 4fdc837bb..3443f81d4 100644 --- a/httemplate/edit/rate.cgi +++ b/httemplate/edit/rate.cgi @@ -1,12 +1,7 @@ - <% my $rate; -if ( $cgi->param('error') ) { - $rate = new FS::rate ( { - map { $_, scalar($cgi->param($_)) } fields('rate') - } ); -} elsif ( $cgi->keywords ) { +if ( $cgi->keywords ) { my($query) = $cgi->keywords; $query =~ /^(\d+)$/; $rate = qsearchs( 'rate', { 'ratenum' => $1 } ); @@ -37,12 +32,41 @@ END )) %> -<% if ( $cgi->param('error') ) { %> -Error: <%= $cgi->param('error') %>
-<% } %> + + + + +
Rate plan @@ -68,7 +92,7 @@ Rate plan my $n = $rate_region->regionnum; my $rate_detail = $rate->dest_detail($rate_region) - || new FS::rate_region { 'min_included' => 0, + || new FS::rate_detail { 'min_included' => 0, 'min_charge' => 0, 'sec_granularity' => '60' }; @@ -95,9 +119,12 @@ Rate plan -
"> +%>" onClick="document.OneTrueForm.submit.disabled=true; process();"> +Please make sure to allow popups from this site in order to view the progress window. +