Admin order page: Unfulfilled Items pairs remaining quantity with the full line total after a partial fulfillment
Version
@medusajs/medusa 2.19.0 (admin dashboard shipped with it).
What happens
On the admin order detail page, after a partial fulfillment, the Unfulfilled Items panel shows the correct remaining quantity but pairs it with the whole line item's total instead of the total for the remaining quantity.
Concrete case from a production order:
| field | value |
|---|---|
order_item.quantity |
2 |
order_item.fulfilled_quantity |
1 |
order_line_item.unit_price |
449 |
is_tax_inclusive |
false |
The panel renders:
Poncho Cozy
411361-95-0
Steel · One size
kr 449.00
1x
kr 898.00 <-- 449 × 2, the full linekr 449.00 (unit price) and 1x (remaining quantity) are both right.
kr 898.00 is the total for the original quantity of 2.
Expected
The total shown beside the remaining quantity should be the total for that
remaining quantity — kr 449.00 here — or the panel should make explicit
that the amount refers to the whole line rather than to what is left.
Steps to reproduce
- Place an order with a line item of quantity 2.
- Fulfill 1 of the 2 from the admin.
- Open the order and look at Unfulfilled Items.
The quantity column reflects the remaining 1; the amount column still shows the full line total.
Notes
- A fully fulfilled or fully unfulfilled order shows consistent numbers; the mismatch only appears while a line is partially fulfilled.
- This looks like a display issue in the dashboard only. Order data itself is
correct: the order was on
version3, and queryingorder_itemfiltered to the order's current version returns the right rows and amounts. Store-facing surfaces built on Medusa'sorder.items(order lookup, confirmation emails) showed correct totals throughout. - I have not read the dashboard source, so I am describing the observed behaviour rather than asserting a cause.
Source: medusajs/medusa