class SupplierExtendedListSerializer < Qwaiter::Serializer
  # user ids for facebook pictures
  embed :ids, include: true
  root 'list'
  attributes :state, :needs_help, :needs_payment, :user_requests_closing, :is_paid, :price, :table_id, :section_id, :supplier_id, :closed_at #, :has_active_orders

  #def has_active_orders
    #object.has_active_orders?
  #end
  has_many :users, serializer: SupplierUserSerializer
end
