User app updates
This commit is contained in:
@@ -3,6 +3,14 @@ App.List = DS.Model.extend
|
||||
orders: DS.hasMany('order')
|
||||
needs_help: attr('boolean')
|
||||
needs_payment: attr('boolean')
|
||||
supplier_name: attr('string')
|
||||
price: attr('number')
|
||||
extended_version: attr('boolean')
|
||||
supplier_orders_in_process_count: attr('number')
|
||||
supplier_orders_placed_count: attr('number')
|
||||
total: (->
|
||||
@get('orders').getEach('total').reduce(((sum, total) -> sum + total), 0)
|
||||
).property('orders.@each.total')
|
||||
|
||||
is_extended_version: ->
|
||||
@get('extended_version')
|
||||
|
||||
Reference in New Issue
Block a user