<% if (invoiceListDetails.description !== '') { %> <% } %>
<% if (logoUrl !== '') { %> SwizzlePay <% } %> <% 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 %>

<% } %>
Description

<%= invoiceListDetails.description %>

Total $<%= invoiceListDetails.currencyLabel %> <%= invoiceListDetails.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 }); %> <% } %> <% if (item.is_count === 1) { %> <% } %> <% if (item.is_count !== 1) { %> <% } %> <% }); %>
Invoice Number Invoice Items Quantity Hours Total
<%= invoiceListDetails.invoiceNum %> <%= item.item_name %><%= item.count %><%= item.hours %><%= invoiceListDetails.currencyLabel %> <%= formattedPrice %>
<% var subtotal = invoiceListDetails.subtotal ; subtotal = Number(subtotal).toLocaleString('en-US', { minimumFractionDigits: 2, maximumFractionDigits: 2 }); %> <% var taxamount = invoiceListDetails.taxamount ; taxamount = Number(taxamount).toLocaleString('en-US', { minimumFractionDigits: 2, maximumFractionDigits: 2 }); %>
Subtotal$ <%= invoiceListDetails.currencyLabel %> <%= subtotal %>
<%= invoiceListDetails.taxLabel %><%= invoiceListDetails.currencyLabel %> <%= taxamount %> <% if ((invoiceListDetails.taxpercentage !== '') ) { %>(<%= invoiceListDetails.taxpercentage %>%) <% } %>
Total <%= invoiceListDetails.currencyLabel %> <%= invoiceListDetails.total %>
Billed By

<%= accountDetails.account_name %>

<%= accountDetails.email %>

<%= cpmPhoneNumber %>