freeside/httemplate/edit rate.cgi,1.1,1.2
ivan
ivan at pouncequick.420.am
Wed Dec 22 23:28:56 PST 2004
Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory pouncequick:/tmp/cvs-serv19390
Modified Files:
rate.cgi
Log Message:
hide US regions for now, we don't currently need them for rating just invoice/session display and the web pages are so giant they're timing out
Index: rate.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/rate.cgi,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- rate.cgi 20 Nov 2004 17:26:54 -0000 1.1
+++ rate.cgi 23 Dec 2004 07:28:53 -0000 1.2
@@ -22,6 +22,13 @@
'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 @@
</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 =
More information about the freeside-commits
mailing list