},
// the client has finished weighting products
- weighting_end: function(){
- if(!this.bypass_proxy){
+ weighting_end: function(force){
+ if(!this.bypass_proxy || force){
this.weight = 0;
this.weighting = false;
this.message('weighting_end');
},
order_product: function(){
var weight = this.pos.proxy.weighting_read_kg();
+ console.log('weighting_end');
+ this.pos.proxy.weighting_end('true');
this.pos.get('selectedOrder').addProduct(this.get_product(),{ quantity:weight });
},
get_product_name: function(){