|
@@ -57,7 +57,7 @@
|
|
|
<% @sellers.each_with_index do |seller, key| %>
|
|
<% @sellers.each_with_index do |seller, key| %>
|
|
|
<tr>
|
|
<tr>
|
|
|
<% sales_by_period = seller.get_sales_by_period(@initial_date, @final_date, 'commission') %>
|
|
<% sales_by_period = seller.get_sales_by_period(@initial_date, @final_date, 'commission') %>
|
|
|
- <% commission_calculated = (@pos_config.commission_percent / 100.0) *sales_by_period.sum(:total) %>
|
|
|
|
|
|
|
+ <% commission_calculated = ((@pos_config.commission_percent / 100.0) *sales_by_period.sum(:total)).round(2) %>
|
|
|
<td> <%= key +1 %> </td>
|
|
<td> <%= key +1 %> </td>
|
|
|
<td> <%= seller.name %> </td>
|
|
<td> <%= seller.name %> </td>
|
|
|
<td> <%= sales_by_period.count %> </td>
|
|
<td> <%= sales_by_period.count %> </td>
|