Assign Order Item Bug ix
This commit is contained in:
@@ -20,9 +20,18 @@
|
||||
</div>
|
||||
<ul class="opi_ul" id="menu_items_category_<%= category.id %>">
|
||||
<% category.menu_items.each do |item| %>
|
||||
|
||||
<li><div class="processitems opi_default" data-id="<%= item.item_code %>"><%= item.name %></div></li>
|
||||
|
||||
<% flag = false %>
|
||||
<% itemsary = JSON.parse(@settings_order_queue_station.processing_items) %>
|
||||
<% itemsary.each do |item_code| %>
|
||||
<% if item_code == item.item_code %>
|
||||
<% flag = true %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% if flag == true %>
|
||||
<li><div class="processitems opi_default opi_selected" data-id="<%= item.item_code %>"><%= item.name %></div></li>
|
||||
<% else %>
|
||||
<li><div class="processitems opi_default" data-id="<%= item.item_code %>"><%= item.name %></div></li>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user