updates based on F5 testing

This commit is contained in:
2020-03-06 08:35:12 -05:00
parent 8288595b3f
commit f1ef618dae
18 changed files with 66 additions and 32 deletions
@@ -1,4 +1,4 @@
class Suppliers::TableSerializer
include Qwaiter::SupplierBaseSerializer
attributes :number, :width, :height, :position_x, :position_y, :section_id#, :active_list_id
attributes :number, :width, :height, :position_x, :position_y, :section_id, :active#, :active_list_id
end
@@ -2,4 +2,5 @@ class Users::SupplierSerializer
include Qwaiter::UserBaseSerializer
attributes :open, :name, :orders_placed_count, :orders_in_process_count, :user_message
has_many :product_categories, serializer: Users::ProductCategorySerializer
related_link_for :product_categories
end
+2 -2
View File
@@ -1,13 +1,13 @@
class Users::TableSerializer
include Qwaiter::UserBaseSerializer
attributes :number, :width, :height, :position_x, :position_y, :section_id, :occupied #, :supplier_id #, :alist_id
attributes :number, :width, :height, :position_x, :position_y, :section_id, :occupied, :active #, :supplier_id #, :alist_id
has_one :supplier, serializer: Users::SupplierSerializer
#def list_id
#object.active_list_id || object.active_list.try(:id)
#end
related_link_for :supplier
#related_link_for :supplier
#def list
#object.active_list
#end
+1 -1
View File
@@ -1,4 +1,4 @@
class Waiter::TableSerializer
include Qwaiter::WaiterBaseSerializer
attributes :number, :width, :height, :position_x, :position_y, :section_id, :needs_help
attributes :number, :width, :height, :position_x, :position_y, :section_id, :needs_help, :active
end