Qwaiter supplier on Ember 1.0
This commit is contained in:
@@ -11,3 +11,8 @@ Qsupplier.App.List = DS.Model.extend
|
||||
orders: DS.hasMany('Qsupplier.App.Order')
|
||||
section: DS.belongsTo('Qsupplier.App.Section')
|
||||
section_id: attr('string')
|
||||
close: ->
|
||||
@get('orders').forEach (order)->
|
||||
order.close()
|
||||
@set('table', null)
|
||||
@list.set('state', 'closed')
|
||||
|
||||
Reference in New Issue
Block a user