move table
This commit is contained in:
@@ -8,7 +8,7 @@ if @zones
|
||||
json.name table.name
|
||||
json.status table.status
|
||||
json.zone_id table.zone_id #Add this zone_id to keep data structure consistance
|
||||
json.current_booking table.get_current_booking
|
||||
json.current_booking table.get_current_booking.booking_id rescue ""
|
||||
end
|
||||
|
||||
json.rooms zone.rooms do |room|
|
||||
@@ -16,7 +16,7 @@ if @zones
|
||||
json.name room.name
|
||||
json.status room.status
|
||||
json.zone_id room.zone_id #Add this zone_id to keep data structure consistance
|
||||
json.current_booking room.get_current_booking
|
||||
json.current_booking room.get_current_booking.booking_id rescue ""
|
||||
|
||||
end
|
||||
end
|
||||
@@ -26,7 +26,7 @@ else #list all tables and rooms with out zones
|
||||
json.name table.name
|
||||
json.status table.status
|
||||
json.zone_id table.zone_id #Add this zone_id to keep data structure consistance
|
||||
json.current_booking table.get_current_booking
|
||||
json.current_booking table.get_current_booking.booking_id rescue ""
|
||||
|
||||
end
|
||||
|
||||
@@ -35,7 +35,7 @@ else #list all tables and rooms with out zones
|
||||
json.name room.name
|
||||
json.status room.status
|
||||
json.zone_id room.zone_id #Add this zone_id to keep data structure consistance
|
||||
json.current_booking room.get_current_booking
|
||||
json.current_booking room.get_current_booking.booking_id rescue ""
|
||||
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user