Add supplier messages for new orders and sounds
This commit is contained in:
@@ -33,6 +33,11 @@ App.Order = DS.Model.extend
|
||||
@get('product_orders').map((po) -> "#{po.get('quantity')} x #{po.get('product.name')}").join(', ')
|
||||
).property('product_orders.@each.quantity', 'product_orders.@each.product.@each.name')
|
||||
|
||||
display_with_table: (->
|
||||
table = t('models.table').toLowerCase()
|
||||
"#{@get('display')} #{table} #{@get('list.table.number')}".htmlSafe()
|
||||
).property('display', 'list.table.number')
|
||||
|
||||
display_tag: (->
|
||||
"<span class='display order-display order-#{@get('id')} #{@get('state')}'><span class='pre-display'></span>#{@get('display')}<span class='post-display'></span></span>".htmlSafe()
|
||||
).property('display', 'state')
|
||||
|
||||
Reference in New Issue
Block a user