Foram Katharotiya (OpenERP) has proposed merging lp:~openerp-dev/openobject-addons/trunk-bug-1099404-fka into lp:openobject-addons.
Requested reviews: OpenERP Core Team (openerp) Related bugs: Bug #1099404 in OpenERP Addons: "[PoS frontend] when you receive payment, entering a number with a comma => the floats after the comma are ignored" https://bugs.launchpad.net/openobject-addons/+bug/1099404 For more details, see: https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1099404-fka/+merge/145152 Hello, - Fix the issue of commas are not used as a thousands separate in pos. Thanks, FKA -- https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1099404-fka/+merge/145152 Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/trunk-bug-1099404-fka.
=== modified file 'point_of_sale/static/src/js/widgets.js' --- point_of_sale/static/src/js/widgets.js 2013-01-14 15:25:33 +0000 +++ point_of_sale/static/src/js/widgets.js 2013-01-28 11:23:26 +0000 @@ -310,7 +310,7 @@ this.payment_line.bind('change', this.changedAmount, this); }, changeAmount: function(event) { - var newAmount = event.currentTarget.value; + var newAmount = event.currentTarget.value.replace(/,/g,''); if (newAmount && !isNaN(newAmount)) { this.amount = parseFloat(newAmount); this.payment_line.set_amount(this.amount);
_______________________________________________ Mailing list: https://launchpad.net/~openerp-dev-gtk Post to : openerp-dev-gtk@lists.launchpad.net Unsubscribe : https://launchpad.net/~openerp-dev-gtk More help : https://help.launchpad.net/ListHelp