[Koha-patches] [PATCH 12/92] [MT2343] Prevents Koha to format total amount in budget period add/edit form
Henri-Damien LAURENT
henridamien.laurent at biblibre.com
Tue Dec 22 01:20:05 CET 2009
From: Jean-André Santoni <jeanandre.santoni at biblibre.com>
+ Forgot a "my"
---
admin/aqbudgetperiods.pl | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/admin/aqbudgetperiods.pl b/admin/aqbudgetperiods.pl
index b12f85e..779f22c 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
);
--
1.6.3.3
More information about the Koha-patches
mailing list