Add supplier messages for new orders and sounds

This commit is contained in:
2015-01-23 14:40:58 +01:00
parent cf80f6ea31
commit cab883b3ce
87 changed files with 423 additions and 5 deletions
@@ -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')