9 lines
209 B
Plaintext
Executable File
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 |