framework management : 1 MARC framework for each itemtype
[koha.git] / mancredit.pl
index c8bc167..300e0a2 100755 (executable)
@@ -24,6 +24,7 @@
 use strict;
 use C4::Auth;
 use C4::Output;
+use C4::Interface::CGI::Output;
 use CGI;
 use HTML::Template;
 use C4::Search;
@@ -42,7 +43,7 @@ if ($add){
   $amount = -$amount;
   my $type=$input->param('type');
   manualinvoice($bornum,$itemnum,$desc,$type,$amount);
-  print $input->redirect("/cgi-bin/koha/moremember.pl?bornum=$bornum");
+  print $input->redirect("/cgi-bin/koha/boraccount.pl?bornum=$bornum");
 } else {
        my ($template, $loggedinuser, $cookie)
        = get_template_and_user({template_name => "mancredit.tmpl",
@@ -53,6 +54,9 @@ if ($add){
                                        debug => 1,
                                        });
        $template->param( bornum => $bornum);
-       print $input->header(-cookie => $cookie),$template->output;
+       print $input->header(
+           -type => guesstype($template->output),
+           -cookie => $cookie
+       ),$template->output;
 
 }