negos_app/app/views/admin/orders/show.html.haml
2016-02-16 21:09:48 +01:00

9 lines
209 B
Plaintext
Executable File

%table.table
=render @order
%h2 Commissions
-coms = Commission.where(:order_id => @order.id).where("canceled is null")
%p
total :
%strong=number_to_currency coms.sum(:amount)
%table.table
=render coms