From 099be3de2eba1f3b9a316106666f52fe5dd4a472 Mon Sep 17 00:00:00 2001 From: The Minh Luong Date: Tue, 19 Apr 2022 14:28:17 -0400 Subject: [PATCH] Bug 30567: Create manual invoice with FR currency format show the correct format This patch correct the format of the price when creating a manual invoice with CurrencyFormat = FR To test: 1- Go in Administration->Debit types 2- Click on New debit type 3- Fill the form: Code: USEDBOOK Default amount: 0.50 Description: Used book Can be manually invoiced: Yes Can be sold: Optionnal 4- Save 5- Go in Patrons 6- Go in a patron's page 7- Go in the "Accounting" section 8- Click on "Create manual invoice" 9- Fill the form 10- Choose the created debit (Used book) 11- Notice that the format is incorrect (0,50 instead of 0.50) 12 - Apply the patch 13- We now see the correct format --- Koha/Number/Price.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Koha/Number/Price.pm b/Koha/Number/Price.pm index e9a6aa748e..ca770e8f6c 100644 --- a/Koha/Number/Price.pm +++ b/Koha/Number/Price.pm @@ -111,11 +111,11 @@ sub _format_params { if ( $currency_format eq 'FR' ) { %format_params = ( decimal_fill => '2', - decimal_point => ',', + decimal_point => '.', int_curr_symbol => $int_curr_symbol, mon_thousands_sep => ' ', thousands_sep => ' ', - mon_decimal_point => ',' + mon_decimal_point => '.' ); } -- 2.25.1