<%= generated_name %>

<%= generated_date %>

Invoice Number: <%= invoice_number %>
<%= client.contact %>
<%= client.tax_identification %>
<%= client.address %>

<%= user.display_name %>

<%= user.website %>
<%= user.email %>

<% if (data_details == 'show') { %>

Hours Worked

<%= hours_rows %>

<% } %>

Invoice

<% if (data_message) { %>

<%= data_message %>

<% } %>

Hours Worked: <%= hours_total %>
Money Earned: <%= money_total % <%= currency %>>
Tax <%= tax_percent %>% <%= tax %>: <%= tax_total %> <%= currency %>

Total Due: <%= total_total %> <%= currency %>

<% if (resource.client) { %>

Bill To:
<% if (resource.client.name) { %><%= resource.client.name %>
<% } %> <% if (resource.client.tax_id) { %><%= resource.client.tax_id %>
<% } %> <% if (resource.client.address) { %><%= resource.client.address %>
<% } %> <% if (resource.client.city) { %><%= resource.client.city %>, <%= resource.client.postal %>
<% } %> <% if (resource.client.country) { %><%= resource.client.country %><% } %>

<% } %>

Payment Info:

<%= user.display_name %>
<%= user.address %>
<%= user.city_state %>
<%= user.country %>

<% if (resource.payment) { %>

Deposit To:
<% if (resource.payment.bank) { %><%= resource.payment.bank %>
<% } %> <% if (resource.payment.address_one) { %><%= resource.payment.address_one %>
<% } %> <% if (resource.payment.address_two) { %><%= resource.payment.address_two %>
<% } %> <% if (resource.payment.country) { %><%= resource.payment.country %>
<% } %> <% if (resource.payment.iban) { %>IBAN: <%= resource.payment.iban %>
<% } %> <% if (resource.payment.bic) { %>BIC: <%= resource.payment.bic %>
<% } %> <% if (resource.payment.account) { %>Account: <%= resource.payment.account %>
<% } %> <% if (resource.payment.routing) { %>Routing: <%= resource.payment.routing %><% } %>

<% } %>