supplier updates mostly

This commit is contained in:
2012-08-30 11:12:23 +02:00
parent df90425a48
commit 0d10ef2b5a
17 changed files with 789 additions and 66 deletions
+2
View File
@@ -31,6 +31,8 @@ class UserController < ApplicationController
@table = Table.find(params[:table_id])
res = {}
res[:ocupied] = @table.occupied?
res[:reserved] = @table.reserved?
res[:supplier_closed] = @table.supplier.closed?
if list.present?
res[:other_supplier] = true if list.supplier_id != @table.supplier_id
res[:current_table_id] = list.table_id