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

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] %>
PROJECT <%= @data[:client][:project_name] %>
<% end %>
CLIENT <%= @data[:client][:name] %>
VAT <%= @data[:client][:vat] %>
ADDRESS <%= @data[:client][:address] %>
<% if @data[:client][:email] %>
EMAIL <%= @data[:client][:email] %>
<% end %>
BILL DATE <%= @data[:client][:bill_date] %>
DELIVERED <%= @data[:client][:date] %>
DUE DATE <%= @data[:client][:due_date] %>
<% @data[:services][:services].each do |service| %> <% end %>
SERVICE DESCRIPTION PRICE QTY TOTAL
<%= service[:name] %> <%= service[:description] || '-' %> <%= service[:unit] %><%= @data[:services][:currency] %> <%= service[:quantity] %> <%= service[:quantity].to_i * service[:unit].to_i %><%= @data[:services][:currency] %>
SUBTOTAL <%= @data[:services][:subtotal] %><%= @data[:services][:currency] %>
TAX <%= @data[:services][:tax_percentage] %>% <%= @data[:services][:tax] %><%= @data[:services][:currency] %>
TOTAL <%= @data[:services][:total] %><%= @data[:services][:currency] %>
NOTICE:
<%= @data[:other][:notice] %>
PAYMENT METHOD:
<%= @data[:other][:payment_method] %>
OPERATOR:
<%= @data[:other][:operator] %>
ACCOUNT NUMBER:
<%= @data[:company][:iban] %>
PAYMENT ID:
<%= @data[:other][:pay_number] %>