This commit is contained in:
Pranshu Tomar 2020-05-13 16:53:25 +05:30
parent 527affe741
commit 020df01980
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;