[IMP]pos does not calculate tax and touch screen does not gives actually quantity

bzr revid: sgo@tinyerp.com-20121105104357-6r59u4g20ojg0hlw
This commit is contained in:
Sanjay Gohel (Open ERP)
2012-11-05 16:13:57 +05:30
parent 29fffbc97d
commit 00a28c4b3d
2 changed files with 2 additions and 6 deletions
+1 -1
View File
@@ -465,7 +465,7 @@ function openerp_pos_models(instance, module){ //module is instance.point_of_sal
var product_list = this.pos.get('product_list');
var product = this.get_product();
var taxes_ids = product.taxes_id;
var taxes_ids = product.get('taxes_id');;
var taxes = self.pos.get('taxes');
var taxtotal = 0;
_.each(taxes_ids, function(el) {
@@ -202,12 +202,8 @@ function openerp_pos_widgets(instance, module){ //module is instance.point_of_sa
this.currentOrderLines.bind('remove', this.renderElement, this);
},
update_numpad: function() {
var reset = false;
if (this.selected_line !== this.pos.get('selectedOrder').getSelectedLine()) {
reset = true;
}
this.selected_line = this.pos.get('selectedOrder').getSelectedLine();
if (reset && this.numpadState)
if (this.numpadState)
this.numpadState.reset();
},
renderElement: function() {