% include('/elements/header.html', 'Service Definition Listing') %>
Service definitions are the templates for items you offer to your customers.
CLASS="grid" BGCOLOR="<% $bgcolor %>">
<% $part_svc->svcpart %>
|
% if ( $cgi->param('showdisabled') ) {
CLASS="grid" BGCOLOR="<% $bgcolor %>">
<% $part_svc->disabled
? 'Disabled'
: 'Enabled'
%>
|
% }
CLASS="grid" BGCOLOR="<% $bgcolor %>">
<% $part_svc->svc %> |
CLASS="grid" BGCOLOR="<% $bgcolor %>">
<% $svcdb %> |
CLASS="grid" BGCOLOR="<% $bgcolor %>">
<% $num_active_cust_svc{$part_svc->svcpart} %> <% $num_active_cust_svc{$part_svc->svcpart} ? svc_url( 'ahref' => 1, 'm' => $m, 'action' => 'search', 'part_svc' => $part_svc, 'query' => "svcpart=". $part_svc->svcpart ) : '' %>active
% if ( $num_active_cust_svc{$part_svc->svcpart} ) {
[ change ]
% }
|
CLASS="inv" BGCOLOR="<% $bgcolor %>">
|
% unless ( @fields ) {
% for ( 1..3 ) {
% }
% }
%
% my($n1)='';
% foreach my $field ( @fields ) {
% my $formatter =
% FS::part_svc->svc_table_fields($svcdb)->{$field}->{format}
% || sub { shift };
% my $flag = $part_svc->part_svc_column($field)->columnflag;
%
<% $n1 %>
| <% $field %> |
<% $flag{$flag} %> |
% my $value = &$formatter($part_svc->part_svc_column($field)->columnvalue);
% if ( $flag =~ /^[MA]$/ ) {
% $inventory_class{$value}
% ||= qsearchs('inventory_class', { 'classnum' => $value } );
%
<% $inventory_class{$value}
? $inventory_class{$value}->classname
: "WARNING: inventory_class.classnum $value not found" %>
% } else {
<% $value %>
% }
|
% $n1="