|
@ -203,8 +203,10 @@ odoo.define('pos_customer_display', function(require) { |
|
|
var res = OrderlineSuper.prototype.set_quantity.call(this, quantity); |
|
|
var res = OrderlineSuper.prototype.set_quantity.call(this, quantity); |
|
|
if (quantity != 'remove') { |
|
|
if (quantity != 'remove') { |
|
|
var line = this; |
|
|
var line = this; |
|
|
|
|
|
if(this.selected){ |
|
|
this.pos.prepare_text_customer_display('add_update_line', {'line': line}); |
|
|
this.pos.prepare_text_customer_display('add_update_line', {'line': line}); |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
return res; |
|
|
return res; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
@ -212,15 +214,19 @@ odoo.define('pos_customer_display', function(require) { |
|
|
var res = OrderlineSuper.prototype.set_discount.call(this, discount); |
|
|
var res = OrderlineSuper.prototype.set_discount.call(this, discount); |
|
|
if (discount) { |
|
|
if (discount) { |
|
|
var line = this; |
|
|
var line = this; |
|
|
|
|
|
if(this.selected){ |
|
|
this.pos.prepare_text_customer_display('add_update_line', {'line': line}); |
|
|
this.pos.prepare_text_customer_display('add_update_line', {'line': line}); |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
return res; |
|
|
return res; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
set_unit_price: function(price){ |
|
|
set_unit_price: function(price){ |
|
|
var res = OrderlineSuper.prototype.set_unit_price.call(this, price); |
|
|
var res = OrderlineSuper.prototype.set_unit_price.call(this, price); |
|
|
var line = this; |
|
|
var line = this; |
|
|
|
|
|
if(this.selected){ |
|
|
this.pos.prepare_text_customer_display('add_update_line', {'line': line}); |
|
|
this.pos.prepare_text_customer_display('add_update_line', {'line': line}); |
|
|
|
|
|
} |
|
|
return res; |
|
|
return res; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|