From 952627b1f92609cecf60f78f06622407c08aba81 Mon Sep 17 00:00:00 2001 From: AjmalCybro Date: Wed, 31 Jul 2024 13:21:00 +0530 Subject: [PATCH] Jul 25 [UPDT] Updated 'pos_weight_manual' --- .../static/src/js/Screens/ProductScreen/ProductScreen.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pos_weight_manual/static/src/js/Screens/ProductScreen/ProductScreen.js b/pos_weight_manual/static/src/js/Screens/ProductScreen/ProductScreen.js index af8e3b687..40074e60b 100644 --- a/pos_weight_manual/static/src/js/Screens/ProductScreen/ProductScreen.js +++ b/pos_weight_manual/static/src/js/Screens/ProductScreen/ProductScreen.js @@ -8,7 +8,7 @@ patch(PosStore.prototype, { async addProductToCurrentOrder(product, options = {}) { var product = product var options = options - if(this.env.services.pos.config.is_allow_manual_weight){ + if(this.env.services.pos.config.is_allow_manual_weight && product.to_weight){ // Show the ScaleScreen to weigh the product. const { confirmed, payload } = await this.showTempScreen('ScaleScreen', { product, @@ -28,5 +28,5 @@ patch(PosStore.prototype, { // Do not add product if options is undefined. if (!options) return; // Add the product after having the extra information. - } - }) + } +})