mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Do not render inventory items in the shipment that dont have a line item in the order
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
- shipment.manifest.each do |item|
|
||||
- line_item = order.find_line_item_by_variant(item.variant)
|
||||
- break if line_item.blank?
|
||||
|
||||
%tr.stock-item{ "data-item-quantity" => "#{item.quantity}" }
|
||||
%td.item-image
|
||||
|
||||
Reference in New Issue
Block a user