update zone json
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
|
||||
|
||||
Reference in New Issue
Block a user