$line{notes} = $results[$i]->{'notes'};
$line{author} = $results[$i]->{'author'};
$line{i} = $i;
- $line{rrp} = $results[$i]->{'rrp'};
- $line{ecost} = $results[$i]->{'ecost'};
+ $line{rrp} = sprintf("%.2f",$results[$i]->{'rrp'});
+ $line{ecost} = sprintf("%.2f",$results[$i]->{'ecost'});
$line{quantity} = $results[$i]->{'quantity'};
$line{quantityrecieved} = $results[$i]->{'quantityreceived'};
- $line{line_total} = $line_total;
+ $line{line_total} = sprintf("%.2f",$line_total);
$line{biblionumber} = $results[$i]->{'biblionumber'};
$line{bookfundid} = $results[$i]->{'bookfundid'};
$line{odd} = $i %2;
});
my $order_loop= &histsearch($title,$author,$name,$from_placed_on,$to_placed_on);
$template->param(suggestions_loop => $order_loop,
+ numresults => scalar(@$order_loop),
title => $title,
author => $author,
name => $name,
use C4::Suggestions;
use C4::Search;
use C4::Output;
+use C4::Input;
use C4::Interface::CGI::Output;
use HTML::Template;
-size => 1,
-multiple => 0 );
+#Build sort lists
my $CGIsort1 = buildCGIsort("Asort1","sort1",$data->{'sort1'});
if ($CGIsort1) {
$template->param(CGIsort1 => $CGIsort1);
} else {
$template->param( sort2 => $data->{'sort2'});
}
-
-
+
# fill template
$template->param( existing => $biblio,
title => $title,