Bug 30139: Fix javascript moneyFormat to be compatible with FR format
authorShi Yao Wang <shi-yao.wang@inlibro.com>
Tue, 10 May 2022 17:34:15 +0000 (13:34 -0400)
committerFridolin Somers <fridolin.somers@biblibre.com>
Sat, 14 May 2022 01:41:55 +0000 (15:41 -1000)
commitb69e743ee3545e74a6b07defb5e1571d820d4ad1
treef6590c2eeafea21dc982d3540729c5aa1fc8b69c
parente0814f2cc051d52a128a2f23f76169cd2e2716a3
Bug 30139: Fix javascript moneyFormat to be compatible with FR format

New way of formatting money amount to make it work with FR format

Test plan:
1- Set CurrencyFormat pref to FR
2- Activate Point of sale and cash register features
3- Add cash register
4- Add debit type that 'can be sold' with a price of 10.00
5- Go to point of sale, click on the item to purchase
6- Verify the Amount to be paid shows the wrong amount and can't be fixed on the interface
7- Apply the patch
8- Refresh the page and do step 5 again
9- Notice it now shows the right amount

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt