big commit, still breaking things...
[koha.git] / acqui / histsearch.pl
index 75e9108..6c47ad8 100755 (executable)
@@ -24,8 +24,10 @@ my ($template, $loggedinuser, $cookie)
                             flagsrequired => {acquisition => 1},
                             debug => 1,
                             });
-my $order_loop= &histsearch($title,$author,$name,$from_placed_on,$to_placed_on);
+my ($order_loop,$total_qty,$total_price)= &histsearch($title,$author,$name,$from_placed_on,$to_placed_on);
 $template->param(suggestions_loop => $order_loop,
+                               total_qty => $total_qty,
+                               total_price => sprintf  ("%.2f",$total_price),
                                numresults => scalar(@$order_loop),
                                title => $title,
                                author => $author,