Merge pull request #3057 from jitendra-webkul/1.0

Issue #3054 fixed
This commit is contained in:
Jitendra Singh 2020-05-13 17:08:06 +05:30 committed by GitHub
commit e5fef36e26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ class OrderItemRepository extends Repository
}
$orderedInventory = $item->product->ordered_inventories()
->where('channel_id', $orderItem->order->channel->id)
->where('channel_id', $orderItem->order->channel_id)
->first();
$qty = $item->qty_ordered ?: $item->parent->qty_ordered;