X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fbrowse%2Fpart_svc.cgi;h=9fb359d1ddbf270c4efbcd19149e9dca1e6f7c67;hp=4c9b1bd957655a05e21a441510f64a015befc79a;hb=3ef62a0570055da710328937e7f65dbb2c027c62;hpb=e6ea57971831f25d682d97a0ba508c39b66ecd8b diff --git a/httemplate/browse/part_svc.cgi b/httemplate/browse/part_svc.cgi index 4c9b1bd95..9fb359d1d 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); %> @@ -22,6 +24,14 @@ function part_export_areyousure(href) { Services are items you offer to your customers.

+ +
Add a new service definition or  +

+ <%= $total %> services <%= $cgi->param('showdisabled') ? do { $cgi->param('showdisabled', 0); @@ -38,9 +48,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 +82,7 @@ map { qsearchs('part_export', { exportnum => $_->exportnum } ) } qsearch('export ) { %> - <%= $part_export->exporttype %> to <%= $part_export->machine %> + <%= $part_export->exporttype %> to <%= $part_export->machine %> <% } %> @@ -94,10 +102,6 @@ map { qsearchs('part_export', { exportnum => $_->exportnum } ) } qsearch('export %> <% } %> - - - param('showdisabled') ? 7 : 8 %>>Add a new service definition -