X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Felements%2Fsvc_Common.html;h=a0b4e37b2013a568b7ea2814456c0e93de7e53b2;hb=1c4c7cf9e2c1b4baae0453d844e23391cda7dfbb;hp=0500248b161cb8d91aca207ac0f11fc84b46619d;hpb=5e05724a635a22776f1b973f5d7e77989da4e048;p=freeside.git
diff --git a/httemplate/view/elements/svc_Common.html b/httemplate/view/elements/svc_Common.html
index 0500248b1..a0b4e37b2 100644
--- a/httemplate/view/elements/svc_Common.html
+++ b/httemplate/view/elements/svc_Common.html
@@ -46,37 +46,40 @@ Service #<% $svcnum %>
<% ntable("#cccccc") %>
<% ntable("#cccccc",2) %>
+
% foreach my $f ( @$fields ) {
%
-% my( $field, $type);
-% if ( ref($f) ) {
-% $field = $f->{'field'},
-% $type = $f->{'type'} || 'text',
-% } else {
-% $field = $f;
-% $type = 'text';
-% }
+% my($field, $type);
+% if ( ref($f) ) {
+% $field = $f->{'field'},
+% $type = $f->{'type'} || 'text',
+% } else {
+% $field = $f;
+% $type = 'text';
+% }
%
+% my $columndef = $part_svc->part_svc_column($field);
+% unless ($columndef->columnflag eq 'F' && !length($columndef->columnvalue)) {
+ |
+
+ <% ( $opt{labels} && exists $opt{labels}->{$field} )
+ ? $opt{labels}->{$field}
+ : $field
+ %>
+ |
-
-
- <% ( $opt{labels} && exists $opt{labels}->{$field} )
- ? $opt{labels}->{$field}
- : $field
- %>
- |
-%
-% #eventually more options for
-
+% }
+%
% }
-% foreach (sort { $a cmp $b } $svc_x->virtual_fields) {
+% foreach (sort { $a cmp $b } $svc_x->virtual_fields) {
<% $svc_x->pvf($_)->widget('HTML', 'view', $svc_x->getfield($_)) %>
% }
@@ -84,6 +87,17 @@ Service #<% $svcnum %>
+
+% if ( defined($opt{'html_foot'}) ) {
+
+ <% ref($opt{'html_foot'})
+ ? &{ $opt{'html_foot'} }($svc_x)
+ : $opt{'html_foot'}
+ %>
+
+
+% }
+
<% joblisting({'svcnum'=>$svcnum}, 1) %>
<% include('/elements/footer.html') %>
@@ -122,6 +136,8 @@ my $svc_x = qsearchs({
my $cust_svc = $svc_x->cust_svc;
my($label, $value, $svcdb) = $cust_svc->label;
+my $part_svc = $cust_svc->part_svc;
+
my $pkgnum = $cust_svc->pkgnum;
my($cust_pkg, $custnum);