[freeside-commits] branch master updated. 96a3ff4adba5871dae5b6f0ea657cc38fbe83513

Ivan ivan at 420.am
Thu Oct 24 20:11:51 PDT 2013


The branch, master has been updated
       via  96a3ff4adba5871dae5b6f0ea657cc38fbe83513 (commit)
      from  50c2e50db2999c61db1c1c72ae416482ef370d99 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 96a3ff4adba5871dae5b6f0ea657cc38fbe83513
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Thu Oct 24 20:11:50 2013 -0700

    style

diff --git a/httemplate/edit/elements/svc_Common.html b/httemplate/edit/elements/svc_Common.html
index 64484eb..4131508 100644
--- a/httemplate/edit/elements/svc_Common.html
+++ b/httemplate/edit/elements/svc_Common.html
@@ -101,14 +101,17 @@
 
                    my $columndef = $part_svc->part_svc_column($f->{'field'});
                    my $flag = $columndef->columnflag;
-                   if ( $flag eq 'F' ) {
+
+                   if ( $flag eq 'F' ) { #fixed
                      $f->{'type'} = length($columndef->columnvalue)
                                       ? 'fixed'
                                       : 'hidden';
                      $f->{'value'} = $columndef->columnvalue;
-                   } elsif ( $flag eq 'A' ) {
+
+                   } elsif ( $flag eq 'A' ) { #auto assign from inventory
                      $f->{'type'} = 'hidden';
-                   } elsif ( $flag eq 'M' ) {
+
+                   } elsif ( $flag eq 'M' ) { #manually assign from inventory
                      $f->{'type'} = 'select-inventory_item';
                      $f->{'empty_label'} = 'Select inventory item';
                      $f->{'extra_sql'} = 'WHERE ( svcnum IS NULL ' .
@@ -116,11 +119,13 @@
                         ')';
                      $f->{'classnum'} = $columndef->columnvalue;
                      $f->{'disable_empty'} = $object->svcnum ? 1 : 0;
-                   } elsif ( $flag eq 'H' ) {
+
+                   } elsif ( $flag eq 'H' ) { #hardware
                      $f->{'type'}        = 'select-hardware_type';
                      $f->{'hashref'}     = {
                                             'classnum'=>$columndef->columnvalue
                                            };
+
                    } elsif ( $flag eq 'S' ) { #selectable choice
                      $f->{type}    = 'select';
                      $f->{options} = [ split( /\s*,\s*/,

-----------------------------------------------------------------------

Summary of changes:
 httemplate/edit/elements/svc_Common.html |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)




More information about the freeside-commits mailing list