From 2c0e099d66d1f1dfaa8db990c3f2989e8c965b8c Mon Sep 17 00:00:00 2001 From: JuMiSanAr Date: Mon, 26 Feb 2024 12:37:37 +0100 Subject: [PATCH] sf_manual_prod_transfer_mobile: fix wrong qty done --- .../static/wms/src/scenario/manual_product_transfer.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shopfloor_manual_product_transfer_mobile/static/wms/src/scenario/manual_product_transfer.js b/shopfloor_manual_product_transfer_mobile/static/wms/src/scenario/manual_product_transfer.js index a7c504dea8..0354aa5145 100644 --- a/shopfloor_manual_product_transfer_mobile/static/wms/src/scenario/manual_product_transfer.js +++ b/shopfloor_manual_product_transfer_mobile/static/wms/src/scenario/manual_product_transfer.js @@ -163,6 +163,9 @@ const ManualProductTransfer = { } if ("qty_done" in data) return data.qty_done; if ("quantity" in data) return data.quantity; + if ("move_lines" in data) { + return data.move_lines.reduce((total, val) => total + val.qty_done, 0); + } return 0; }, lot: function () {