[freeside-commits] freeside/httemplate/edit/elements svc_Common.html, 1.8.2.2, 1.8.2.3 edit.html, 1.39.2.1, 1.39.2.2

Ivan,,, ivan at wavetail.420.am
Mon Mar 1 11:29:22 PST 2010


Update of /home/cvs/cvsroot/freeside/httemplate/edit/elements
In directory wavetail.420.am:/tmp/cvs-serv20175/httemplate/edit/elements

Modified Files:
      Tag: FREESIDE_1_9_BRANCH
	svc_Common.html edit.html 
Log Message:
enable manual selection from inventory dropdowns for svc_broadband, svc_external & svc_phone, RT#7010

Index: edit.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/elements/edit.html,v
retrieving revision 1.39.2.1
retrieving revision 1.39.2.2
diff -u -w -d -r1.39.2.1 -r1.39.2.2
--- edit.html	25 Jan 2010 22:17:29 -0000	1.39.2.1
+++ edit.html	1 Mar 2010 19:29:20 -0000	1.39.2.2
@@ -280,7 +280,7 @@
 %
 %   #select-table, checkboxes-table
 %   $include_common{$_} = $f->{$_}
-%     foreach grep exists($f->{$_}), qw( table name_col );
+%     foreach grep exists($f->{$_}), qw( table name_col value_col );
 %
 %   #checkboxes-table
 %   $include_common{$_} = $f->{$_}

Index: svc_Common.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/elements/svc_Common.html,v
retrieving revision 1.8.2.2
retrieving revision 1.8.2.3
diff -u -w -d -r1.8.2.2 -r1.8.2.3
--- svc_Common.html	13 Feb 2010 02:53:49 -0000	1.8.2.2
+++ svc_Common.html	1 Mar 2010 19:29:20 -0000	1.8.2.3
@@ -64,6 +64,16 @@
                      $f->{'value'} = $columndef->columnvalue;
                    } elsif ( $flag eq 'A' ) {
                      $f->{'type'} = 'hidden';
+                   } elsif ( $flag eq 'M' ) {
+                     $f->{'type'}      = 'select-table';
+                     $f->{'table'}     = 'inventory_item';
+                     $f->{'name_col'}  = 'item'; 
+                     $f->{'value_col'} = 'item'; 
+                     $f->{'hashref'}   = {
+                                          'classnum' => $columndef->columnvalue,
+                                          'svcnum'   => '',
+                                         };
+                     $f->{'empty_label'} = 'Select inventory item';
                    }
 
                    if ( $f->{'type'} eq 'select-svc_pbx' ) {



More information about the freeside-commits mailing list