food court cashier

This commit is contained in:
yarzar_code
2020-01-14 18:09:40 +06:30
parent 3f338f2073
commit 49e3065866
8 changed files with 34 additions and 21 deletions

View File

@@ -3,7 +3,8 @@
<li class="breadcrumb-item"><a href="<%= dashboard_path %>"><%= t("views.right_panel.button.home") %></a></li>
<li class="breadcrumb-item active"><%= t :booking %></li>
<span class="float-right">
<%if current_login_employee.role == "foodcourt_cashier" %>
<%food_court = Lookup.find_by_lookup_type_and_value("food_court", "1")%>
<% if food_court %>
<%= link_to 'Back', foodcourt_food_court_path %>
<% else %>
<%= link_to 'Back', dashboard_path %>

View File

@@ -4,7 +4,8 @@
<li class="breadcrumb-item"><a href="<%= dashboard_path %>"><%= t("views.right_panel.button.home") %></a></li>
<li class="breadcrumb-item active"><%= t("views.right_panel.detail.order") %></li>
<span class="float-right">
<%if current_login_employee.role == "foodcourt_cashier" %>
<%food_court = Lookup.find_by_lookup_type_and_value("food_court", "1")%>
<% if food_court %>
<%= link_to 'Back', foodcourt_food_court_path %>
<% else %>
<%= link_to 'Back', dashboard_path %>

View File

@@ -3,7 +3,8 @@
<li class="breadcrumb-item"><a href="<%= dashboard_path %>"><%= t("views.right_panel.button.home") %></a></li>
<li class="breadcrumb-item active"><%= t :sale %></li>
<span class="float-right">
<%if current_login_employee.role == "foodcourt_cashier" %>
<%food_court = Lookup.find_by_lookup_type_and_value("food_court", "1")%>
<% if food_court %>
<%= link_to 'Back', transactions_bookings_path %>
<% else %>
<%= link_to 'Back', dashboard_path %>