X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fbrowse%2Fpart_svc.cgi;h=7c83924a2be72a3bf393f86e5b064854bc929b5a;hb=0ebeec96313dd7edfca340f01f8fbbbac1f4aa1d;hp=5c33e68a4f564947b5b459bd2d1f48e771d89210;hpb=207b9834ab70d170865f1f8c7de5e43fc2c5b17d;p=freeside.git diff --git a/httemplate/browse/part_svc.cgi b/httemplate/browse/part_svc.cgi index 5c33e68a4..7c83924a2 100755 --- a/httemplate/browse/part_svc.cgi +++ b/httemplate/browse/part_svc.cgi @@ -8,7 +8,9 @@ if ( $cgi->param('showdisabled') ) { %search = ( 'disabled' => '' ); } -my @part_svc = qsearch('part_svc', \%search ); +my @part_svc = + sort { $a->getfield('svcpart') <=> $b->getfield('svcpart') } + qsearch('part_svc', \%search ); my $total = scalar(@part_svc); %> @@ -21,8 +23,18 @@ function part_export_areyousure(href) { } - Services are items you offer to your customers.

-<%= $total %> services + Service definitions are the templates for items you offer to your customers.

+ +
+Add a new service definition<% if ( @part_svc ) { %> or  +<% } %> +

+ +<%= $total %> service definitions <%= $cgi->param('showdisabled') ? do { $cgi->param('showdisabled', 0); '( hide disabled services )'; } @@ -38,9 +50,7 @@ function part_export_areyousure(href) { Modifier -<% foreach my $part_svc ( sort { - $a->getfield('svcpart') <=> $b->getfield('svcpart') - } @part_svc ) { +<% foreach my $part_svc ( @part_svc ) { my $hashref = $part_svc->hashref; my $svcdb = $hashref->{svcdb}; my @dfields = fields($svcdb); @@ -74,7 +84,7 @@ map { qsearchs('part_export', { exportnum => $_->exportnum } ) } qsearch('export ) { %> - <%= $part_export->exporttype %> to <%= $part_export->machine %> + <%= $part_export->exportnum %>: <%= $part_export->exporttype %> to <%= $part_export->machine %> <% } %> @@ -94,10 +104,6 @@ map { qsearchs('part_export', { exportnum => $_->exportnum } ) } qsearch('export %> <% } %> - - - param('showdisabled') ? 7 : 8 %>>Add a new service definition -