Moving some output from the script to the template and formatting currency amount...
authoroleonard <oleonard>
Thu, 17 Mar 2005 21:22:17 +0000 (21:22 +0000)
committeroleonard <oleonard>
Thu, 17 Mar 2005 21:22:17 +0000 (21:22 +0000)
moredetail.pl

index ab48f13..629eb27 100755 (executable)
@@ -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'});