Hiral Patel (OpenERP) has proposed merging lp:~openerp-dev/openobject-addons/trunk-bug-1099426-hip into lp:openobject-addons.
Requested reviews: OpenERP Core Team (openerp) Related bugs: Bug #1099426 in OpenERP Addons: "[PoS frontend] quantities of products using the the product list conflict with quantities using the numbers pad" https://bugs.launchpad.net/openobject-addons/+bug/1099426 For more details, see: https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1099426-hip/+merge/143457 -- https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1099426-hip/+merge/143457 Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/trunk-bug-1099426-hip.
=== modified file 'point_of_sale/static/src/js/models.js' --- point_of_sale/static/src/js/models.js 2013-01-11 14:42:19 +0000 +++ point_of_sale/static/src/js/models.js 2013-01-16 08:46:25 +0000 @@ -789,7 +789,7 @@ oldBuffer = this.get('buffer'); if (oldBuffer === '0') { this.set({ - buffer: newChar + buffer: parseInt(newChar) + 1 }); } else if (oldBuffer === '-0') { this.set({ @@ -797,13 +797,13 @@ }); } else { this.set({ - buffer: (this.get('buffer')) + newChar + buffer: (this.get('buffer')) + parseInt(newChar) }); } this.updateTarget(); }, deleteLastChar: function() { - var tempNewBuffer = this.get('buffer').slice(0, -1); + var tempNewBuffer = String(this.get('buffer')).slice(0, -1); if(!tempNewBuffer){ this.set({ buffer: "0" });
_______________________________________________ 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