class OrderArticleSerializer < ActiveModel::Serializer
  attributes :id, :order_id, :price
  attributes :quantity, :tolerance, :units_to_order

  has_one :article

  def price
    object.price.fc_price.to_f
  end
end