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

INVOICE <%= @data[:number] %>

<%= @data[:company][:company_name] %>
<%= @data[:company][:company_address] %>
<%= @data[:company][:company_city] %>, <%= @data[:company][:company_country] %>
<% if @data[:company][:company_phone] %>
<%= @data[:company][:company_phone] %>
<% end %> <% if @data[:client][:vat] %>
VAT ID: <%= @data[:client][:vat] %>
<% 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] %>
ADDRESS <%= @data[:client][:address] %>
<% if @data[:client][:email] %>
EMAIL <%= @data[:client][:email] %>
<% end %>
DATE <%= @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] %><%= service[:currency] %> <%= service[:quantity] %> <%= service[:quantity].to_i * service[:unit].to_i %><%= service[:currency] %>
SUBTOTAL <%= @data[:services][:subtotal] %>
TAX 25% <%= @data[:services][:tax] %>
TOTAL <%= @data[:services][:total] %>
NOTICE:
<%= @data[:other][:notice] %>