Merge pull request #473 from jitendra-webkul/jitendra

Issue #389 fixed
This commit is contained in:
JItendra Singh 2019-01-18 16:49:58 +05:30 committed by GitHub
commit 71df0dea94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -106,6 +106,9 @@ class ShipmentRepository extends Repository
$orderItem = $this->orderItem->find($itemId);
if ($qty > $orderItem->qty_to_ship)
$qty = $orderItem->qty_to_ship;
$totalQty += $qty;
$shipmentItem = $this->shipmentItem->create([