X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fbrowse%2Fpart_svc.cgi;h=933554cd5f9e9b74e6e8ffef3ac9d2509283bebe;hb=e9af247503b619f0c61a3ba14481bc76752bdd8b;hp=250b1ff4e897684611a8070bb3636f43580012fb;hpb=74e64d70361848f089aad9a7881c2af9caf6e479;p=freeside.git diff --git a/httemplate/browse/part_svc.cgi b/httemplate/browse/part_svc.cgi index 250b1ff4e..933554cd5 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); %> @@ -38,9 +40,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); @@ -66,35 +66,16 @@ function part_export_areyousure(href) { <%= $hashref->{svcdb} %> ><%= itable() %> <% - my @part_export = qsearch('part_export', { svcpart => $part_svc->svcpart } ); - foreach my $part_export ( @part_export ) { +# my @part_export = +map { qsearchs('part_export', { exportnum => $_->exportnum } ) } qsearch('export_svc', { svcpart => $part_svc->svcpart } ) ; + foreach my $part_export ( + map { qsearchs('part_export', { exportnum => $_->exportnum } ) } + qsearch('export_svc', { svcpart => $part_svc->svcpart } ) + ) { %> - <%= $part_export->exporttype %> to <%= $part_export->machine %> (edit | delete) - - <%= itable() %> - <% my %opt = $part_export->options; - foreach my $opt ( keys %opt ) { %> - <%= $opt %><%= $opt{$opt} %> - <% } %> - - + <%= $part_export->exporttype %> to <%= $part_export->machine %> <% } %> - Add a new export -<% if (@part_export) { %> - -
- - - -
-<% } %> <% my($n1)=''; @@ -115,7 +96,14 @@ function part_export_areyousure(href) { <% } %> - param('showdisabled') ? 7 : 8 %>>Add a new service definition + param('showdisabled') ? 7 : 8 %>> +
Add a new service definition or  +
+