diff --git a/app/assets/javascripts/OQS.js b/app/assets/javascripts/OQS.js index 609fdfc2..ce844239 100755 --- a/app/assets/javascripts/OQS.js +++ b/app/assets/javascripts/OQS.js @@ -70,26 +70,26 @@ $(document).on('turbolinks:load', function() { row ='
' - +'Order at' + +'' + +'Order at' +''+ show_date +' - ' +''+ data[field]["item_order_by"] +' ' - +' ' - +'
' + +' ' + +'' +''+ data[field]["customer_name"] +'
' +''+ data[field]["assigned_order_item_id"] +'
' diff --git a/app/assets/javascripts/channels/order_queue_station.js b/app/assets/javascripts/channels/order_queue_station.js index 4fb7d214..6c8166d4 100755 --- a/app/assets/javascripts/channels/order_queue_station.js +++ b/app/assets/javascripts/channels/order_queue_station.js @@ -37,26 +37,26 @@ App.order_queue_station = App.cable.subscriptions.create('OrderQueueStationChann row ='' - +'Order at' + +'' + +'Order at' +''+ show_date +' - ' +''+ items[field]["item_order_by"] +' ' - +' ' - +'
' + +' ' + +'' +''+ items[field]["customer_name"] +'
' +''+ items[field]["assigned_order_item_id"] +'
' diff --git a/app/assets/stylesheets/OQS.scss b/app/assets/stylesheets/OQS.scss index f6211dec..bd62ff95 100755 --- a/app/assets/stylesheets/OQS.scss +++ b/app/assets/stylesheets/OQS.scss @@ -22,10 +22,5 @@ background-color: blue; } -.order-item { - width: 49%; - font-size: 18px; - margin: 0px 0px 5px 0px; -} diff --git a/app/models/dining_facility.rb b/app/models/dining_facility.rb index ba01afb6..24a3e47b 100755 --- a/app/models/dining_facility.rb +++ b/app/models/dining_facility.rb @@ -33,7 +33,6 @@ class DiningFacility < ApplicationRecord def get_current_booking booking = Booking.where("dining_facility_id = #{self.id} and booking_status ='assign' and checkin_at between '#{DateTime.now.utc - 5.hours}' and '#{DateTime.now.utc}' and checkout_at is null").limit(1) - if booking.count > 0 then return booking[0] else diff --git a/app/views/oqs/home/index.html.erb b/app/views/oqs/home/index.html.erb index 3e03f84d..896dfae7 100755 --- a/app/views/oqs/home/index.html.erb +++ b/app/views/oqs/home/index.html.erb @@ -73,7 +73,7 @@<%= @filter %>
-- Order at + Order at <%= qid.created_at.utc.getlocal.strftime("%d-%m-%Y %I:%M %p") %> - <%= qid.item_order_by %> - +
completed
<%= qid.customer_name %>
@@ -140,9 +140,9 @@| Order By | -Order At - | Customer + | Order By | +Order At + | Customer |
|---|