Browse Source

Merge pull request #253 from grap/8.0_FIX_compatibility_pos_pricelist_display_customer

8.0 fix compatibility pos pricelist display customer
pull/106/merge
Stefan Rijnhart (Opener) 7 years ago
committed by GitHub
parent
commit
ae1be90f9e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 15
      pos_customer_display/static/src/js/customer_display.js

15
pos_customer_display/static/src/js/customer_display.js

@ -200,7 +200,9 @@ openerp.pos_customer_display = function(instance){
var res = OrderlineSuper.prototype.set_quantity.call(this, quantity);
if (quantity != 'remove') {
var line = this;
this.pos.prepare_text_customer_display('add_update_line', {'line': line});
if(this.selected){
this.pos.prepare_text_customer_display('add_update_line', {'line': line});
}
}
return res;
},
@ -209,7 +211,9 @@ openerp.pos_customer_display = function(instance){
var res = OrderlineSuper.prototype.set_discount.call(this, discount);
if (discount) {
var line = this;
this.pos.prepare_text_customer_display('add_update_line', {'line': line});
if(this.selected){
this.pos.prepare_text_customer_display('add_update_line', {'line': line});
}
}
return res;
},
@ -217,7 +221,9 @@ openerp.pos_customer_display = function(instance){
set_unit_price: function(price){
var res = OrderlineSuper.prototype.set_unit_price.call(this, price);
var line = this;
this.pos.prepare_text_customer_display('add_update_line', {'line': line});
if(this.selected){
this.pos.prepare_text_customer_display('add_update_line', {'line': line});
}
return res;
},
@ -270,6 +276,9 @@ openerp.pos_customer_display = function(instance){
change_rounded = change.toFixed(2);
this.pos.prepare_text_customer_display('update_payment', {'change': change_rounded});
}
else{
this.pos.prepare_text_customer_display('addPaymentline', {})
}
return res;
},
});

Loading…
Cancel
Save