1 <% encode_rest($return) %>\
6 my( $pkgpart, $command ) = split('/', rest_uri_remain($r, $m) );
8 my @fields = fields('part_pkg');
14 my $part_pkg = qsearchs('part_pkg', { 'pkgpart'=>$pkgpart } )
15 or die "unknown pkgpart $pkgpart";
17 if ( $command eq '' ) {
19 $return = $part_pkg->API_getinfo;
21 } elsif ( $command eq 'customers' ) {
22 die 'XXX not yet implemented';
23 #XXX redirect to a cust_main search?
28 my %hash = ( map { $_ => scalar($cgi->param($_)) }
29 qw( disabled classnum )
32 my @part_pkg = qsearch('part_pkg', \%hash);
34 $return = [ map $part_pkg->API_getinfo, @part_pkg ];