From 62b7b377764d432790072d1a5313a1b262077f82 Mon Sep 17 00:00:00 2001 From: oleonard Date: Thu, 17 Mar 2005 21:22:17 +0000 Subject: [PATCH] Moving some output from the script to the template and formatting currency amount (the former requires an update to the template) --- moredetail.pl | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/moredetail.pl b/moredetail.pl index ab48f13249..629eb27f93 100755 --- a/moredetail.pl +++ b/moredetail.pl @@ -79,11 +79,7 @@ $env->{itemcount}=1; $results[0]=$data; foreach my $item (@items){ - $item->{'itemlost'}=~ s/0/No/; - $item->{'itemlost'}=~ s/1/Yes/; - $item->{'withdrawn'}=~ s/0/No/; - $item->{'withdrawn'}=~ s/1/Yes/; - $item->{'replacementprice'}+=0.00; + $item->{'replacementprice'}=sprintf("%.2f", $item->{'replacementprice'}); $item->{'datelastborrowed'}= format_date($item->{'datelastborrowed'}); $item->{'dateaccessioned'} = format_date($item->{'dateaccessioned'}); $item->{'datelastseen'} = format_date($item->{'datelastseen'}); -- 2.39.5