fix(core-flows): Allow return requests with no shipping (#8472)

Closes CC-265
This commit is contained in:
Oli Juhl
2024-08-07 09:48:14 +02:00
committed by GitHub
parent 1e0149ad08
commit 78eb457487
3 changed files with 188 additions and 21 deletions

View File

@@ -50,6 +50,9 @@ function updateReturnItems(returnEntry, items) {
const data = items.find((i) => i.details.reference_id === item.item_id)
if (!data) return
console.log("ITEM: ", item)
console.log("DATA: ", data)
const receivedQuantity = MathBN.add(
item.received_quantity || 0,
data.details.quantity