28 lines
1.1 KiB
ERB
28 lines
1.1 KiB
ERB
<%= render 'top_list', tax_references: @tax_references %>
|
|
|
|
<p><%= @tax_reference.year %></p>
|
|
<p><%= @tax_reference.hourly_wage %></p>
|
|
<p><%= number_to_percentage(@tax_reference.worker_percentage, precision: 2) %></p>
|
|
<p><%= number_to_percentage(@tax_reference.employer_percentage, precision: 2) %></p>
|
|
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col"><%= t('Number of Hours') %></th>
|
|
<th scope="col"><%= t('Employer (extra)') %></th>
|
|
<th scope="col"><%= t('Worker (discount)') %></th>
|
|
<th scope="col"><%= t('Total contribution') %></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% hourly_contribution = @tax_reference.hourly_wage / 100 %>
|
|
<% (@tax_reference.min_monthly_hours..TaxReference::MAX_MONTHLY_HOURS).each do |n_hours| %>
|
|
<tr>
|
|
<td scope="row"><%= n_hours %></td>
|
|
<td><%= number_to_currency(@tax_reference.employer_contribution(n_hours), locale: :pt) %></td>
|
|
<td><%= number_to_currency(@tax_reference.worker_contribution(n_hours), locale: :pt) %></td>
|
|
<td><%= number_to_currency(@tax_reference.total_contribution(n_hours), locale: :pt) %></td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table> |