Promotion Index View Change
This commit is contained in:
@@ -39,7 +39,13 @@
|
|||||||
<td><%= pro.promo_end_hour.utc.strftime("%I:%M %P") rescue "-" %></td>
|
<td><%= pro.promo_end_hour.utc.strftime("%I:%M %P") rescue "-" %></td>
|
||||||
<td><%= pro.promo_day %></td>
|
<td><%= pro.promo_day %></td>
|
||||||
<td>
|
<td>
|
||||||
<%= MenuItem.find_by_item_code(pro.original_product).name rescue "-"%>
|
<% item = MenuItemInstance.find_by_item_instance_code(pro.original_product)%>
|
||||||
|
<% if item.nil? %>
|
||||||
|
<%= Product.find_by_item_code(pro.original_product).name rescue "-" %>
|
||||||
|
<% else %>
|
||||||
|
<%= item.menu_item.name rescue "-" %>
|
||||||
|
- <%= item.item_instance_name rescue "-" %>
|
||||||
|
<% end %>
|
||||||
</td>
|
</td>
|
||||||
<% if Employee.exists?(pro.created_by) %>
|
<% if Employee.exists?(pro.created_by) %>
|
||||||
<td><%= Employee.find(pro.created_by).name %></td>
|
<td><%= Employee.find(pro.created_by).name %></td>
|
||||||
|
|||||||
Reference in New Issue
Block a user