Merge branch 'adminbsb_material_ui'
This commit is contained in:
@@ -6,7 +6,7 @@ if @zones
|
||||
#List all tables
|
||||
json.tables zone.tables do |table|
|
||||
if table.is_active
|
||||
booking = table.get_current_booking_status
|
||||
booking = table.get_current_booking
|
||||
json.id table.id
|
||||
json.name table.name
|
||||
json.status table.status
|
||||
@@ -18,7 +18,7 @@ if @zones
|
||||
|
||||
json.rooms zone.rooms do |room|
|
||||
if room.is_active
|
||||
booking = room.get_current_booking_status
|
||||
booking = room.get_current_booking
|
||||
json.id room.id
|
||||
json.name room.name
|
||||
json.status room.status
|
||||
@@ -32,7 +32,7 @@ if @zones
|
||||
else #list all tables and rooms with out zones
|
||||
json.tables @all_tables do |table|
|
||||
if table.is_active
|
||||
booking = table.get_current_booking_status
|
||||
booking = table.get_current_booking
|
||||
json.id table.id
|
||||
json.name table.name
|
||||
json.status table.status
|
||||
@@ -44,7 +44,7 @@ else #list all tables and rooms with out zones
|
||||
|
||||
json.rooms @all_rooms do |room|
|
||||
if room.is_active
|
||||
booking = room.get_current_booking_status
|
||||
booking = room.get_current_booking
|
||||
json.id room.id
|
||||
json.name room.name
|
||||
json.status room.status
|
||||
|
||||
@@ -146,7 +146,7 @@
|
||||
<div class="card-block">
|
||||
<%
|
||||
order_status = ""
|
||||
sale_order = SaleOrder.find_by_order_id(order)
|
||||
sale_order = order.sale_orders.first
|
||||
if sale_order
|
||||
unless sale_order.sale_id.nil?
|
||||
sale = Sale.find(sale_order.sale_id)
|
||||
|
||||
Reference in New Issue
Block a user