Skip to content

Commit cbc352e

Browse files
committed
resolve can not create shipment for remaining item issue
1 parent b7e99de commit cbc352e

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Sales/Model/Order

1 file changed

+1
-1
lines changed

app/code/Magento/Sales/Model/Order/Item.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ public function getQtyToShip()
232232
*/
233233
public function getSimpleQtyToShip()
234234
{
235-
$qty = $this->getQtyOrdered() - $this->getQtyShipped() - $this->getQtyRefunded() - $this->getQtyCanceled();
235+
$qty = $this->getQtyOrdered() - max($this->getQtyShipped(), $this->getQtyRefunded()) - $this->getQtyCanceled();
236236
return max(round($qty, 8), 0);
237237
}
238238

0 commit comments

Comments
 (0)