From 93b01eb2a5c925eb67097a311fc2f7eec16cc31f Mon Sep 17 00:00:00 2001 From: tipaul Date: Fri, 23 Sep 2005 08:55:57 +0000 Subject: [PATCH] adding total (qty & price) in historysearch --- acqui/histsearch.pl | 4 +- .../default/en/acqui/histsearch.tmpl | 79 ++++++++++++++----- 2 files changed, 64 insertions(+), 19 deletions(-) diff --git a/acqui/histsearch.pl b/acqui/histsearch.pl index 75e910842d..6c47ad832a 100755 --- a/acqui/histsearch.pl +++ b/acqui/histsearch.pl @@ -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, diff --git a/koha-tmpl/intranet-tmpl/default/en/acqui/histsearch.tmpl b/koha-tmpl/intranet-tmpl/default/en/acqui/histsearch.tmpl index 6e1570cd4c..9a7a22c45b 100644 --- a/koha-tmpl/intranet-tmpl/default/en/acqui/histsearch.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/acqui/histsearch.tmpl @@ -6,9 +6,8 @@ - - + @@ -21,14 +20,12 @@ Filter on -
 TitleAuthor SupplierTitle/Author Placed on Recieved on Quantity ordered - "> + "> + ">/ "> - "> - From /includes/calendar/cal.gif" border="0" hspace="0" vspace="0" id="openCalendarFrom" style="cursor: pointer;" valign="top"> "> @@ -58,6 +55,7 @@ } ); +
To /includes/calendar/cal.gif" id="openCalendarTo" style="cursor: pointer;" valign="top" border="0" hspace="0" vspace="0"> " type="text">