deposit slips
[freeside.git] / httemplate / search / elements / search.html
index 730a51a..60548e2 100644 (file)
@@ -198,6 +198,10 @@ Example:
 %
 <% include('search-xml.html',  rows=>$rows, opt=>\%opt ) %>
 %
+% } elsif ( $type eq 'deposit_slip' ) {
+%
+<% include('search-deposit_slip.html',  rows=>$rows, opt=>\%opt ) %>
+%
 % } else {
 %
 <% include('search-html.html',
@@ -224,8 +228,9 @@ my $curuser = $FS::CurrentUser::CurrentUser;
 
 $m->comp('/elements/handle_uri_query');
 
-my $type = $cgi->param('_type') =~ /^(csv|\w*\.xls|xml|select|html(-print)?)$/
-           ? $1 : 'html' ;
+my $type = $cgi->param('_type')
+               =~ /^(csv|\w*\.xls|xml|select|html(-print)?|deposit_slip)$/
+             ? $1 : 'html' ;
 
 if ( !$curuser->access_right('Download report data') ) {
   $opt{'disable_download'} = 1;