<% if @data[:logo] %> <% end %>

<%= I18n.t :invoice %> <%= @data[:number] %>

<%= @data[:company][:company_name] %>
<% if @data[:company][:vat] %>
<%= @data[:company][:vat] %>
<% end %>
<%= @data[:company][:company_address] %>
<%= @data[:company][:company_city] %>, <%= @data[:company][:company_country] %>
<% if @data[:company][:company_phone] %>
<%= @data[:company][:company_phone] %>
<% end %> <% if @data[:company][:company_email] %>
<%= @data[:company][:company_email] %>
<% end %>
<% if @data[:client][:project_name] %>
<%= I18n.t :project %> <%= @data[:client][:project_name] %>
<% end %>
<%= I18n.t :client %> <%= @data[:client][:name] %>
<%= I18n.t :vat %> <%= @data[:client][:vat] %>
<%= I18n.t :address %> <%= @data[:client][:address] %>
<% if @data[:client][:email] %>
EMAIL <%= @data[:client][:email] %>
<% end %>
<%= I18n.t :bill_date %> <%= @data[:client][:bill_date] %>
<%= I18n.t :delivered %> <%= @data[:client][:date] %>
<%= I18n.t :due_date %> <%= @data[:client][:due_date] %>
<% @data[:services][:services].each do |service| %> <% end %>
<%= I18n.t :service %> <%= I18n.t :description %> <%= I18n.t :price %> <%= I18n.t :qty %> <%= I18n.t :total %>
<%= service[:name] %> <%= service[:description] || '-' %> <%= service[:unit].to_f.round_money %> <%= @data[:services][:currency] %> <%= service[:quantity] %> <%= (service[:quantity].to_i * service[:unit].to_i).round_money %> <%= @data[:services][:currency] %>
<%= I18n.t :subtotal %> <%= @data[:services][:subtotal].round_money %> <%= @data[:services][:currency] %>
<%= I18n.t :tax %> <%= @data[:services][:tax_percentage] %>% <%= @data[:services][:tax].round_money %> <%= @data[:services][:currency] %>
<%= I18n.t :total %> <%= @data[:services][:total].round_money %> <%= @data[:services][:currency] %>
<%= I18n.t :notice %>:
<%= @data[:other][:notice] %>
<%= I18n.t :payment_method %>:
<%= @data[:other][:payment_method] %>
<%= I18n.t :operator %>:
<%= @data[:other][:operator] %>
<%= I18n.t :acc_number %>:
<%= @data[:company][:iban] %>
<%= I18n.t :pay_id %>:
<%= @data[:other][:pay_number] %>