diff --git a/app/controllers/origami/quick_service_controller.rb b/app/controllers/origami/quick_service_controller.rb index 8abcfcc8..d2194bb5 100644 --- a/app/controllers/origami/quick_service_controller.rb +++ b/app/controllers/origami/quick_service_controller.rb @@ -12,7 +12,7 @@ class Origami::QuickServiceController < ApplicationController day = Date.today.wday @menus = Menu.all @menu = MenuCategory.active.where("menu_id =#{@menus[0].id}").order('order_by asc') - @zone = Zone.all + @zone = Zone.all @customer = Customer.all @tables = Table.all.active.order('status desc') @rooms = Room.all.active.order('status desc') diff --git a/app/views/origami/customers/index.html.erb b/app/views/origami/customers/index.html.erb index 503cb01f..181319b9 100755 --- a/app/views/origami/customers/index.html.erb +++ b/app/views/origami/customers/index.html.erb @@ -119,11 +119,13 @@ <%if !@dining_facility.nil?%> - - + + + <%else%> - + + <%end%> <%= f.error_notification %> <%= f.hidden_field :id, :class => "form-control col-md-6 " %> @@ -473,7 +475,7 @@ if(data.status == true) { var id = $("#table_id").val(); - var type = $("#type").val(); + var type = $("#table_type").val(); var booking_id = ""; <% if !@booking_order.nil? %> booking_id = "<%= @booking_order.booking_id %>"; @@ -506,7 +508,7 @@ $('#back').on('click',function(){ var id = $("#table_id").val(); - var type = $("#type").val(); + var type = $("#table_type").val(); var sale_id = $("#sale_id").val(); if (cashier_type == "quick_service") { window.location.href = '/origami/sale/'+sale_id+'/'+cashier_type+'/payment/'; diff --git a/app/views/origami/home/show.html.erb b/app/views/origami/home/show.html.erb index 974afe7c..ec935f04 100755 --- a/app/views/origami/home/show.html.erb +++ b/app/views/origami/home/show.html.erb @@ -488,11 +488,6 @@ <% end %> - - <% if current_login_employee.role != "waiter" %> - - <% end %> - @@ -511,6 +506,10 @@ <%end%> + + <% if current_login_employee.role != "waiter" %> + + <% end %> <% end %> <% end %> diff --git a/app/views/origami/payments/show.html.erb b/app/views/origami/payments/show.html.erb index 4d9f2dc5..965f1814 100755 --- a/app/views/origami/payments/show.html.erb +++ b/app/views/origami/payments/show.html.erb @@ -372,6 +372,8 @@ + + <% if @cashier_type=="quick_service" %>