update zone json

This commit is contained in:
Aung Myo
2018-07-01 15:54:44 +06:30
parent 0897068e5b
commit 985604cd1f
4 changed files with 6 additions and 15 deletions

View File

@@ -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