Foram Katharotiya (OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-1099411-fka into
lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
Related bugs:
Bug #1099411 in OpenERP Addons: "[PoS frontend] clicking on +/- after
entering a payment amount manually with keyboard resets amount to 0"
https://bugs.launchpad.net/openobject-addons/+bug/1099411
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1099411-fka/+merge/145830
Hello,
- fix the issue of clicking on +/- after entering a payment amount manually
with keyboard resets amount to 0 in pos.
Thanks,
FKA
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1099411-fka/+merge/145830
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-1099411-fka.
=== 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-31 12:45:36 +0000
@@ -515,6 +515,7 @@
},
//sets the amount of money on this payment line
set_amount: function(value){
+ self.screen_selector.current_screen.numpadState.set({buffer: value.toString()});
this.amount = value;
this.trigger('change');
},
=== 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-31 12:45:36 +0000
@@ -122,8 +122,8 @@
console.warn('TODO should not get there...?');
return;
}
+ self.pos_widget.screen_selector.set_current_screen('payment');
self.pos.get('selectedOrder').addPaymentLine(self.cashRegister);
- self.pos_widget.screen_selector.set_current_screen('payment');
});
},
});
@@ -319,6 +319,7 @@
changedAmount: function() {
if (this.amount !== this.payment_line.get_amount())
this.renderElement();
+ this.amount = this.payment_line.get_amount()
},
renderElement: function() {
var self = this;
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp