CATEGORIAS

<% total_outsourcing = 0 utility_factor = @quotation.utility_factor.nil? ? 0 : (@quotation.utility_factor / 100) @list_categories.each_with_index do |category, index| total_outsourcing = total_outsourcing + (category[:cost_client][:subtotal] * category[:quantity]) %> <% end commission_total = total_outsourcing * utility_factor subtotal = total_outsourcing + commission_total iva = subtotal * 0.16 total = subtotal + iva %>
No. Categoria Cant. Clase IMSS DIAS SDI IMMS SUELDO PER. IMSS PREVISIÓN SOCIAL RETEN. ISR E IMSS SALARIO NETO A PAGAR       ISN       COUTA IMMS PATRONAL COSTO TOTAL
<%= index + 1 %> <%= category[:name] %> <%= category[:quantity] %> <%= category[:occupational_risk] %> <%= category[:days_period] %> <%= number_to_currency(category[:sdi], unit: '$', format: "%u %n") %> <%= number_to_currency(category[:income][:period_salary], unit: '$', format: "%u %n") %> <%= number_to_currency((category[:income][:prevision_social][:sport] + category[:income][:prevision_social][:culture]), unit: '$', format: "%u %n") %> <%= number_to_currency((category[:isr_retention] + category[:insurance_rcv_worker]), unit: '$', format: "%u %n") %> <%= number_to_currency(category[:total_salary], unit: '$', format: "%u %n") %> <%= number_to_currency(category[:isn][:sum_isn], unit: '$', format: "%u %n") %> <%= number_to_currency(category[:insurance_rcv_boss], unit: '$', format: "%u %n") %> <%= number_to_currency((category[:quantity] * category[:cost_client][:subtotal]), unit: '$', format: "%u %n") %>

COSTOS TOTALES

COSTO TOTAL SUBCONTRATACIÓN <%= number_to_currency(total_outsourcing, unit: '$', format: "%u %n") %>
COMISIÓN <%= @quotation.utility_factor.nil? ? 0 : @quotation.utility_factor %> %
COMISIÓN FINANCIAMIENTO <%= number_to_currency((commission_total), unit: '$', format: "%u %n") %>
SUBTOTAL <%= number_to_currency(subtotal, unit: '$', format: "%u %n") %>
IVA (16%) <%= number_to_currency(iva, unit: '$', format: "%u %n") %>
TOTAL <%= number_to_currency(total, unit: '$', format: "%u %n") %>