Skip to content

Commit

Permalink
sf_manual_prod_transfer_mobile: fix wrong qty done
Browse files Browse the repository at this point in the history
  • Loading branch information
JuMiSanAr committed Mar 1, 2024
1 parent c114af4 commit 2c0e099
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit 2c0e099

Please sign in to comment.