Skip to content

Changes

Started 8 hr 35 min ago
Took 9 min 30 sec on Application-Node-Production

Summary

  1. quick-rma: create a fresh RMA next to a marketplace RMA that already authorizes a shipment line (details)
Commit 8de3a55c8e84c8912d1c0b80de1104909c99dff9 by info
quick-rma: create a fresh RMA next to a marketplace RMA that already authorizes a shipment line

Follow-up to 3e5766907. The fresh RMA for shipment 535011 was rejected
with 'Amount to be returned is greater than the amount shipped': the
Amazon RMA 30595 already authorizes both shipped HYDRO units, and
iDempiere's MRMALine.checkQty sums every completed/closed RMA line on a
shipment line (a completed RMA also takes no new lines).

quick-rma now collects the authorized qty per shipment line from CO/CL
RMAs and creates such an RMA line without M_InOutLine_ID (product + qty,
description notes the conflict); the receipt line still links to it via
M_RMALine_ID. useReturnedQty attributes receipt lines of unlinked RMA
lines to the shipment line by product (callers pass the shipment lines)
so the remaining qty stays correct.
The file was modifiedapp/composables/useReturnedQty.ts (diff)
The file was modifiedserver/api/inouts/quick-rma.post.ts (diff)
The file was modifiedapp/pages/mobile/return.vue (diff)
The file was modifiedapp/pages/integrations/returns-desktop.vue (diff)