<% if (logoUrl !== '') { %>
<% } %>
<% if (logoUrl === '') { %>
<%= org_name %>
<% } %>
|
Invoice Date
|
<%= invoiceDate %>
|
Due Date
|
<%= due_date %>
|
<% if (description !== '') { %>
Description
|
<%= description %>
|
<% } %>
|
|
|
|
<% invoiceItemData.forEach(function(item) { %>
Invoice Items
|
<%= item.item_name %>
|
<% if (item.is_count === 1) { %>
<% var price = item.price * item.count;
var totalPrice = price.toFixed(2) %>
<% } else { %>
<% var price = item.price * item.hours;
var totalPrice = price.toFixed(2) %>
<% } %>
$<%= totalPrice %>
|
<% if (item.is_count === 1) { %>
Quantity : <%= item.count %>
|
<% } %>
<% if (item.is_count !== 1) { %>
Hours : <%= item.hours %>
|
<% } %>
|
|
|
<% }); %>
Invoice Details
|
Subtotal
|
$<%= invoiceDetails[0].sub_total %>
|
Tax
|
$<%= invoiceDetails[0].tax_amount %><% if ((invoiceDetails[0].tax_percentage !== '') ) { %>(<%= invoiceDetails[0].tax_percentage %>%) <% } %>
|
Total
|
$<%= invoiceDetails[0].grand_total %>
|
|
|
Billed By
|
<%= userDetails[0].first_name %> <%= userDetails[0].last_name %>
|
<%= userDetails[0].email %>
|
<%= userPhoneNumber %>
|
|
|