[freeside-commits] branch FREESIDE_3_BRANCH updated. 99c8f194ea3c9a2a300fde6caa700a60e04865e5
Ivan
ivan at 420.am
Thu Oct 24 20:11:52 PDT 2013
The branch, FREESIDE_3_BRANCH has been updated
via 99c8f194ea3c9a2a300fde6caa700a60e04865e5 (commit)
from dfbfe2c0a30fe1d99b9d852b8e96a84bf101aff1 (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 99c8f194ea3c9a2a300fde6caa700a60e04865e5
Author: Ivan Kohler <ivan at freeside.biz>
Date: Thu Oct 24 20:11:51 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