[freeside-commits] freeside/httemplate/view svc_dsl.cgi, 1.9, 1.9.2.1

Ivan,,, ivan at wavetail.420.am
Thu Oct 6 00:00:09 PDT 2011


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

Modified Files:
      Tag: FREESIDE_2_3_BRANCH
	svc_dsl.cgi 
Log Message:
add dsl_device to track mac addresses, RT#13656

Index: svc_dsl.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/svc_dsl.cgi,v
retrieving revision 1.9
retrieving revision 1.9.2.1
diff -u -w -d -r1.9 -r1.9.2.1
--- svc_dsl.cgi	27 Mar 2011 23:01:47 -0000	1.9
+++ svc_dsl.cgi	6 Oct 2011 07:00:07 -0000	1.9.2.1
@@ -33,11 +33,12 @@
     
     # if no DSL-pulling exports, then just display everything, which is the
     # default behaviour implemented above
-    return if ( scalar(@exports) == 0 );
+    if ( scalar(@exports) ) {
 
     my $export = @exports[0];
 
-    @fields = ( 'phonenum',
+      @fields = (
+        'phonenum',
             { field => 'loop_type', 
               value => 'FS::part_export::'.$export->exporttype.'::loop_type_long'
             },
@@ -48,7 +49,8 @@
             { field => 'last_pull', type => 'datetime', },
             'first',
             'last',
-            'company'  );
+        'company',
+      );
 
     my $status = '';
     if($export->exporttype eq 'ikano') {
@@ -61,6 +63,15 @@
    
     $footer = "<B>$status</B>";
 
+    }
+
+    $footer .= '<BR><BR>'.
+               include( '/view/elements/svc_devices.html',
+                          'svc_x'   => $svc_dsl,
+                          'table'   => 'dsl_device',
+                          'no_edit' => 1,
+                      );
+
     my @notes = $svc_dsl->notes;
     if ( @notes ) {
 
@@ -68,7 +79,7 @@
       my $date_format = $conf->config('date_format') || '%m/%d/%Y';
 
       $footer .=
-        "<BR><BR>Order Notes<BR>". ntable('#cccccc', 2). #id="dsl_notes"
+        "Order Notes<BR>". ntable('#cccccc', 2). #id="dsl_notes"
         '<TR><TH>Date</TH><TH>By</TH><TH>Priority</TH><TH>Note</TH></TR>';
 
       foreach my $note ( @notes ) {



More information about the freeside-commits mailing list