Empresa
EMPLEADOR ALIADO SA DE C V
RFC
EAL-171005-AY5
Periodo
<%= @period %>
Dirección
31 244 Interior: 0 Col: BENITO JUAREZ, C.P.: 24180
Lugar y Fecha de Expedición
CAMPECHE, CARMEN <%= Time.now.strftime("%m/%d/%Y") %>

<% @sub = 0 %> <% @data.each_with_index do |item, index| %> <% @sub = @sub + item[:cost_client][:subtotal] %> <% end %> <% if @period_ob.commission_financing_total > 0 %> <% end %>
# NOMBRE PUESTO SDI DIAS SALARIO OTROS PAGOS DESCUENTOS TOTAL NÓMINA COSTO TOTAL
<%= index + 1 %>
<%= item[:name] %>
<%= item[:category] %>
<%= number_to_currency(item[:sdi], locale: :en) %>
<%= item[:days_worked] %>
<%= number_to_currency(item[:total_salary_pdf], locale: :en) %>
<%= number_to_currency(item[:otros_pagos], locale: :en) %>
<%= number_to_currency(item[:descuentos], locale: :en) %>
<%= number_to_currency(item[:salary_net], locale: :en) %>
<%= number_to_currency(item[:cost_client][:subtotal], locale: :en) %>
Costo Total Subcontratación: <%= number_to_currency(@sub, locale: :en) %>
Comisión (<%= @period_ob.payroll_profile.commission %>%): <%= number_to_currency(@period_ob.commission_total, locale: :en) %>
Comisión de Financiamiento: <%= number_to_currency(@period_ob.commission_financing_total, locale: :en) %>
Subtotal: <%= number_to_currency(@period_ob.subtotal, locale: :en) %>
IVA (16%): <%= number_to_currency(@period_ob.iva, locale: :en) %>
TOTAL: <%= number_to_currency(@period_ob.total, locale: :en) %>