|
|
@ -9,10 +9,10 @@ class RestrictStockPopup extends AbstractAwaitablePopup { |
|
|
|
// On clicking order product button on popup, it will add product to orderline
|
|
|
|
if(this.props.pro_id){ |
|
|
|
var product = this.env.services.pos.db.get_product_by_id(this.props.pro_id) |
|
|
|
product.order_status = True |
|
|
|
product.order_status = true |
|
|
|
this.env.services.pos.selectedOrder.add_product(product); |
|
|
|
} |
|
|
|
this.props.resolve(true); |
|
|
|
this.props.resolve(true); |
|
|
|
this.cancel(); |
|
|
|
} |
|
|
|
} |
|
|
|