<% if (logoUrl !== '') { %>
<% } %>
<% if (logoUrl === '') { %>
<%= org_name %>
<% } %>
|
BILLING TO
<%= customerData.customer_name %>
<%= customerData.customer_email %>
<%= customerData.phone_number %>
<%= customerData.address %>
<%= customerData.city %>, <%= customerData.state %> <%= customerData.zip %>
<%= customerData.country %>
|
Receipt
<%= invoiceListDetails.invoiceNum %>
<% if (invoiceListDetails.invoiceStatus === '1') { %>
Receipt No : <%= paymentInfo[0].receipt_num %>
Paid Date : <%= invoiceListDetails.paymentDate %>
<% } %>
<% if (invoiceListDetails.invoiceStatus === '0') { %>
Invoice Date : <%= invoiceListDetails.invoiceDate %>
Due Date : <%= invoiceListDetails.invoiceDueDate %>
<% } %>
|
<% if (invoiceListDetails.description !== '') { %>
Description
<%= invoiceListDetails.description %>
|
<% } %>
|
|
|
| Total |
$<%= invoiceListDetails.currencyLabel %> <%= invoiceListDetails.total %> |
|
Invoice Number
|
Invoice Items
|
Quantity
|
Hours
|
Total
|
|
|
<% invoiceItemList.forEach(function(item) { %>
<% if (item.is_count === 1) { %>
<% var price = item.price * item.count;
var totalPrice = price.toFixed(2)
var formattedPrice = Number(totalPrice).toLocaleString('en-US', { minimumFractionDigits: 2, maximumFractionDigits: 2 });
%>
<% } else { %>
<% var price = item.price * item.hours;
var totalPrice = price.toFixed(2)
var formattedPrice = Number(totalPrice).toLocaleString('en-US', { minimumFractionDigits: 2, maximumFractionDigits: 2 });
%>
<% } %>
| <%= invoiceListDetails.invoiceNum %> |
<%= item.item_name %> |
<% if (item.is_count === 1) { %>
<%= item.count %> |
<% } %>
<% if (item.is_count !== 1) { %>
<%= item.hours %> |
<% } %>
<%= invoiceListDetails.currencyLabel %> <%= formattedPrice %> |
<% }); %>
| Subtotal |
<% var subtotal = invoiceListDetails.subtotal ;
subtotal = Number(subtotal).toLocaleString('en-US', { minimumFractionDigits: 2, maximumFractionDigits: 2 }); %>
$ <%= invoiceListDetails.currencyLabel %> <%= subtotal %> |
| <%= invoiceListDetails.taxLabel %> |
<% var taxamount = invoiceListDetails.taxamount ;
taxamount = Number(taxamount).toLocaleString('en-US', { minimumFractionDigits: 2, maximumFractionDigits: 2 }); %>
<%= invoiceListDetails.currencyLabel %> <%= taxamount %> <% if ((invoiceListDetails.taxpercentage !== '') ) { %>(<%= invoiceListDetails.taxpercentage %>%) <% } %> |
| Total |
<%= invoiceListDetails.currencyLabel %> <%= invoiceListDetails.total %> |
Billed By
<%= accountDetails.account_name %>
<%= accountDetails.email %>
<%= cpmPhoneNumber %>
|
|
|
|
|