[freeside-commits] freeside/httemplate/search phone_inventory_provisioned.html, 1.1.2.2, 1.1.2.3

Erik Levinson levinse at wavetail.420.am
Fri Apr 8 09:38:27 PDT 2011


Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv14765/httemplate/search

Modified Files:
      Tag: FREESIDE_2_1_BRANCH
	phone_inventory_provisioned.html 
Log Message:
update phone provsioning/inventory report as per recent bulk DID order inventory changes, RT10988

Index: phone_inventory_provisioned.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/phone_inventory_provisioned.html,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -u -w -d -r1.1.2.2 -r1.1.2.3
--- phone_inventory_provisioned.html	18 Jan 2011 00:59:04 -0000	1.1.2.2
+++ phone_inventory_provisioned.html	8 Apr 2011 16:38:25 -0000	1.1.2.3
@@ -4,34 +4,33 @@
               'query'         => {
                                    'table'   => 'phone_avail',
                                    'hashref' => {},
-                                   'select'  => 'distinct npa||nxx as npanxx'
+                                   'select'  => 'distinct latanum',
                                  },
-              'count_query'   => 'SELECT COUNT(distinct npa||nxx) FROM phone_avail',
-              'header'        => [ 'NPANXX',
+              'count_query'   => 'SELECT COUNT(distinct latanum) FROM phone_avail',
+              'header'        => [ 'LATA #',
 				   'Available',
 				   'Provisioned',
 				   'Have Usage',
                                  ],
               'fields'        => [
-                'npanxx',
+                'latanum',
 		sub {
-		    my $npanxx = shift->npanxx;
+		    my $latanum = shift->latanum;
 		    my @dids = qsearch('phone_avail',
 					{ 'svcnum' => '',
-					  'npa' => substr($npanxx,0,3),
-					  'nxx' => substr($npanxx,3,3),
+					  'latanum' => $latanum,
 					}
 				      );
 		    return scalar(@dids);
 		},
 		sub {
-		    my $npanxx = shift->npanxx;
-		    my @dids = provisioned_dids($npanxx);
+		    my $latanum = shift->latanum;
+		    my @dids = provisioned_dids($latanum);
 		    return scalar(@dids);
 		},
 		sub {
-		    my $npanxx = shift->npanxx;
-		    my @dids = provisioned_dids($npanxx);
+		    my $latanum = shift->latanum;
+		    my @dids = provisioned_dids($latanum);
 		    my $count = 0;
 		    foreach my $did ( @dids ) {
 			next unless $did->cust_svc;
@@ -74,11 +73,10 @@
 # XXX: agent virtualize
 
 sub provisioned_dids {
-    my $npanxx = shift;
+    my $latanum = shift;
     qsearch({ 'table' => 'phone_avail',
 	      'hashref' => { 
-		'npa' => substr($npanxx,0,3),
-		'nxx' => substr($npanxx,3,3),
+		'latanum' => $latanum,
 	      },
 	      'extra_sql' => ' and svcnum is not null ',
 	  });



More information about the freeside-commits mailing list