Bug 27801: Fix javascript price calculations
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 3 Dec 2021 15:29:00 +0000 (15:29 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 15 Dec 2021 22:15:00 +0000 (12:15 -1000)
commitbcf8cff857c29ea1308df9fc94218b26ed689099
treef2d36e724439ca121a4619978b7859865e8a01fb
parentf4e62d25e04257aaca443711be69543c47cc4c12
Bug 27801: Fix javascript price calculations

This patch ensures we're formatting the price values consistently for
the table total and the amount to pay input field.

Test plan
1) Add an item to charge at 0.10.
2) Add this same item 8 or 9 times (Do not use the 'quantity')
3) Note that the table total and the 'Amount paid' values do not match
4) Apply the patch and repeat the above steps.. the values should now
   match.

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt