diff --git a/src/components/orders/detail/order-returns/return-modal/ReturnItemsTable.tsx b/src/components/orders/detail/order-returns/return-modal/ReturnItemsTable.tsx index 09627d27..ffda7670 100644 --- a/src/components/orders/detail/order-returns/return-modal/ReturnItemsTable.tsx +++ b/src/components/orders/detail/order-returns/return-modal/ReturnItemsTable.tsx @@ -45,7 +45,7 @@ export function ReturnItemsTable({control, lineItems, allOrderReturns, existingR .map((orderReturn) => orderReturn.ItemsToReturn.filter((returnItem) => returnItem.LineItemID === lineItem.ID)) ) const quantityAlreadyReturned = otherReturnItems.reduce((acc, returnItem) => acc + returnItem.Quantity || 0, 0) - return lineItem.Quantity - quantityAlreadyReturned + return lineItem.QuantityShipped - quantityAlreadyReturned } const buildQuantityOptions = (lineItem: ILineItem) => {