hotfix(medusa): Temporary multi-warehouse support for draft orders (#3665)

* remove reservations from draft order creation and show correct inventory

* add changeset

* add integration tests

* adjust inventory on payment if no inventory service is installed
This commit is contained in:
Philip Korsholm
2023-04-04 11:36:51 +02:00
committed by GitHub
parent bb9df09e37
commit 748833383f
6 changed files with 340 additions and 15 deletions
@@ -125,7 +125,7 @@ const FulfillmentLine = ({
const validQuantity =
!locationId ||
(locationId &&
(!availableQuantity || quantities[item.id] < availableQuantity))
(!availableQuantity || quantities[item.id] <= availableQuantity))
React.useEffect(() => {
setErrors((errors) => {