From b14efbc8325d31f202335ffebd7412377bda1e44 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Andr=C3=A9=20Santoni?= Date: Wed, 2 Dec 2009 16:23:05 +0100 Subject: [PATCH] [MT2343] Prevents Koha to format total amount in budget period add/edit form + Forgot a "my" --- admin/aqbudgetperiods.pl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/admin/aqbudgetperiods.pl b/admin/aqbudgetperiods.pl index b12f85ebda..779f22c0d6 100755 --- a/admin/aqbudgetperiods.pl +++ b/admin/aqbudgetperiods.pl @@ -114,7 +114,14 @@ if ( $op eq 'add_form' ) { my $budgetperiod_hash=GetBudgetPeriod($budget_period_id); # get dropboxes FormatData($budgetperiod_hash); - $$budgetperiod_hash{budget_period_total}= $num->format_price($$budgetperiod_hash{'budget_period_total'}); + + my $editnum = new Number::Format( + 'int_curr_symbol' => '', + 'thousands_sep' => '', + 'mon_decimal_point' => '.' + ); + + $$budgetperiod_hash{budget_period_total}= $editnum->format_price($$budgetperiod_hash{'budget_period_total'}); $template->param( %$budgetperiod_hash ); -- 2.39.5