negos_app/app/views/admin/orders/show.html.haml
Nicolas Bally 772e87ffb7 initial
2015-11-14 00:08:54 +01:00

9 lines
209 B
Plaintext

%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