X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=acqui%2Fbasket.pl;h=c528156157d32b31d4d03bd38fc01d6b644e8068;hb=6c2984e78a5a8e26c995523655a9b86442813318;hp=b83628029ebab399f9afac8c20d79e39d2761502;hpb=f029e9aba7d6c03b3c8e19697af31071b595dcc9;p=koha_gimpoz diff --git a/acqui/basket.pl b/acqui/basket.pl index b83628029e..c528156157 100755 --- a/acqui/basket.pl +++ b/acqui/basket.pl @@ -343,6 +343,11 @@ my $total_est_gste; last; } + my @cancelledorders = GetCancelledOrders($basketno); + foreach (@cancelledorders) { + $_->{'line_total'} = sprintf("%.2f", $_->{'ecost'} * $_->{'quantity'}); + } + $template->param( basketno => $basketno, basketname => $basket->{'basketname'}, @@ -359,6 +364,7 @@ my $total_est_gste; name => $bookseller->{'name'}, entrydate => C4::Dates->new($results[0]->{'entrydate'},'iso')->output, books_loop => \@books_loop, + cancelledorders_loop => \@cancelledorders, gist_rate => sprintf( "%.2f", $gist * 100 ) . '%', total_rrp_gste => sprintf( "%.2f", $total_rrp_gste ), total_est_gste => sprintf( "%.2f", $total_est_gste ),