hide US regions for now, we don't currently need them for rating just invoice/session...
authorivan <ivan>
Thu, 23 Dec 2004 07:28:53 +0000 (07:28 +0000)
committerivan <ivan>
Thu, 23 Dec 2004 07:28:53 +0000 (07:28 +0000)
httemplate/edit/rate.cgi

index 83a89c4..4fdc837 100644 (file)
@@ -22,6 +22,13 @@ my %granularity = (
   '60' => 'minute',
 );
 
+my $nous = <<END;
+  WHERE 0 < ( SELECT COUNT(*) FROM rate_prefix
+               WHERE rate_region.regionnum = rate_prefix.regionnum
+                 AND countrycode != '1'
+            )
+END
+
 %>
 
 <%= header("$action Rate plan", menubar(
@@ -52,7 +59,11 @@ Rate plan
 </TR>
 
 <% foreach my $rate_region (
-     qsearch('rate_region', {}, '', 'ORDER BY regionname' )
+     qsearch( 'rate_region',
+              {},
+              '',
+              "$nous ORDER BY regionname",
+            )
    ) {
      my $n = $rate_region->regionnum;
      my $rate_detail =