dashboard: link to view order page
This commit is contained in:
parent
a5a29aff5c
commit
de9453fa24
2 changed files with 14 additions and 3 deletions
|
|
@ -10,7 +10,7 @@
|
|||
%th= t '.supplier'
|
||||
%th= t '.ending'
|
||||
%th= t '.who_ordered'
|
||||
%th= t '.total'
|
||||
%th.numeric= t '.total'
|
||||
%tbody
|
||||
- total = 0
|
||||
- Order.open.each do |order|
|
||||
|
|
@ -20,7 +20,7 @@
|
|||
- if group_order = order.group_order(ordergroup)
|
||||
- total += group_order.price
|
||||
%td= "#{group_order.updated_by.nick} (#{format_time(group_order.updated_on)})"
|
||||
%td.numeric= number_to_currency(group_order.price)
|
||||
%td.numeric= link_to_ordering_price(order)
|
||||
- else
|
||||
%td{:colspan => 2}
|
||||
- if total > 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue