API v1 group_order_articles endpoints
This commit is contained in:
parent
ed9192c47f
commit
e1d50e5b9c
11 changed files with 646 additions and 10 deletions
8
app/serializers/group_order_article_serializer.rb
Normal file
8
app/serializers/group_order_article_serializer.rb
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
class GroupOrderArticleSerializer < ActiveModel::Serializer
|
||||
attributes :id, :order_article_id
|
||||
attributes :quantity, :tolerance, :result, :total_price
|
||||
|
||||
def total_price
|
||||
object.total_price.to_f
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue