Bug 30567: Fix price formatting when adding a manual invoice with CurrencyFormat FR
authorKatrin Fischer <katrin.fischer.83@web.de>
Mon, 6 Jun 2022 21:34:26 +0000 (21:34 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 5 Jul 2022 12:57:57 +0000 (09:57 -0300)
commitc54e1de8b2beec131f51fdfe866fd27ee8bc0759
tree787939d2f5187b758f2dd2e7aeff662578d5f99c
parent3bd3ec4805047412f25a93712dd06ea2de70608b
Bug 30567: Fix price formatting when adding a manual invoice with CurrencyFormat FR

In input fields we always use the decimal . while the display format
uses the decimal separtor definded by CurrencyFormat. When adding a
manual invoice without this patch, the amount is shown with comma, but
it should be . in the input field.

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
4- Save
5- Go to any patron account
6- Go to the "Accounting" tab
7- Click on "Create manual invoice"
8- Fill the form
9- Choose the created debit (Used book)
10- Verify that the format is incorrect (0,50 instead of 0.50)
11- Apply the patch
12- Verify the amount is now using the correct format

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/members/maninvoice.tt