Bugzilla – Attachment 133413 Details for
Bug 30567
Create manual invoice with FR currency format show the incorrect format
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30567: Create manual invoice with FR currency format show the correct format
Bug-30567-Create-manual-invoice-with-FR-currency-f.patch (text/plain), 1.53 KB, created by
The Minh Luong
on 2022-04-19 18:30:55 UTC
(
hide
)
Description:
Bug 30567: Create manual invoice with FR currency format show the correct format
Filename:
MIME Type:
Creator:
The Minh Luong
Created:
2022-04-19 18:30:55 UTC
Size:
1.53 KB
patch
obsolete
>From 099be3de2eba1f3b9a316106666f52fe5dd4a472 Mon Sep 17 00:00:00 2001 >From: The Minh Luong <theminh@inlibro.com> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 30567
:
133413
|
135737
|
136335
|
137059