projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
50c2e50
)
style
author
Ivan Kohler
<ivan@freeside.biz>
Fri, 25 Oct 2013 03:11:50 +0000
(20:11 -0700)
committer
Ivan Kohler
<ivan@freeside.biz>
Fri, 25 Oct 2013 03:11:50 +0000
(20:11 -0700)
httemplate/edit/elements/svc_Common.html
patch
|
blob
|
history
diff --git
a/httemplate/edit/elements/svc_Common.html
b/httemplate/edit/elements/svc_Common.html
index
64484eb
..
4131508
100644
(file)
--- 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;
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;
$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';
$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 ' .
$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;
')';
$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
};
$f->{'type'} = 'select-hardware_type';
$f->{'hashref'} = {
'classnum'=>$columndef->columnvalue
};
+
} elsif ( $flag eq 'S' ) { #selectable choice
$f->{type} = 'select';
$f->{options} = [ split( /\s*,\s*/,
} elsif ( $flag eq 'S' ) { #selectable choice
$f->{type} = 'select';
$f->{options} = [ split( /\s*,\s*/,