%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