Do not render inventory items in the shipment that dont have a line item in the order

This commit is contained in:
Luis Ramos
2020-04-17 20:23:29 +01:00
parent 8973a1b76c
commit 8f8dce4bab

View File

@@ -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