diff options
| author | Joren Van Onder <jov@odoo.com> | 2015-12-11 09:45:35 +0100 |
|---|---|---|
| committer | Joren Van Onder <jov@odoo.com> | 2015-12-11 09:45:35 +0100 |
| commit | 697739dd6473ad5b91d941ba408ad6ca36276146 (patch) | |
| tree | 29f0b9f1c1867f7620e03bdd42f0ebf4f3d22070 /addons/web/static/src/js/framework/session_instance.js | |
| parent | da563bcf5cc34608f380449c3919233074c8bd58 (diff) | |
[FIX] point_of_sale: make tendered amount adhere to currency formatting
Part of the number formatting overhaul done in
5c9b4556e35c420985696b0c958ca492030efa4a,
4b003afd0ab125b0296de8939626ae889ccdab47,
261ccf7c56062930b1d712ae860fe01dd8718968 and
6e945de681452d6753f58a749352bfbe099bac1d. The only place left where we
didn't correctly format the numbers was in the tendered column on
the payment screen. This fixes that by not directly displaying the
inputbuffer anymore. Instead we pass the payment line amount through
format_currency_no_symbol() and display that instead. We also give a
default amount of 0 to parse_value so it doesn't return false for an
empty string.
Diffstat (limited to 'addons/web/static/src/js/framework/session_instance.js')
0 files changed, 0 insertions, 0 deletions
