Skip to content

Commit 2c0e099

Browse files
committed
sf_manual_prod_transfer_mobile: fix wrong qty done
1 parent c114af4 commit 2c0e099

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

shopfloor_manual_product_transfer_mobile/static/wms/src/scenario/manual_product_transfer.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,9 @@ const ManualProductTransfer = {
163163
}
164164
if ("qty_done" in data) return data.qty_done;
165165
if ("quantity" in data) return data.quantity;
166+
if ("move_lines" in data) {
167+
return data.move_lines.reduce((total, val) => total + val.qty_done, 0);
168+
}
166169
return 0;
167170
},
168171
lot: function () {

0 commit comments

Comments
 (0)