From 66372fc54c9d13e827b724a8c1f2e4372b4ec6b1 Mon Sep 17 00:00:00 2001 From: oleonard Date: Tue, 18 Apr 2006 18:58:42 +0000 Subject: [PATCH] Formatting reserve fee and enrollment fee output to 2 decimal places --- admin/categorie.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/categorie.pl b/admin/categorie.pl index bff91edd3a..82b53dc626 100755 --- a/admin/categorie.pl +++ b/admin/categorie.pl @@ -169,10 +169,10 @@ if ($op eq 'add_form') { enrolmentperiod => $results->[$i]{'enrolmentperiod'}, upperagelimit => $results->[$i]{'upperagelimit'}, dateofbirthrequired => $results->[$i]{'dateofbirthrequired'}, - enrolmentfee => $results->[$i]{'enrolmentfee'}, + enrolmentfee => sprintf("%.2f", $results->[$i]{'enrolmentfee'}), overduenoticerequired => $results->[$i]{'overduenoticerequired'}, issuelimit => $results->[$i]{'issuelimit'}, - reservefee => $results->[$i]{'reservefee'}, + reservefee => sprintf("%.2f", $results->[$i]{'reservefee'}), toggle => $toggle ); push @loop, \%row; if ( $toggle eq 0 ) -- 2.39.5