<%= user.companyName %>
Invoice: <%= invoiceNo %>
Date: <%= date %>
Billed To
<%= client.name %>
<%= client.email %>
<% items.forEach(i => { %> <% }) %>
Item Qty Price Total
<%= i.name %> <%= i.quantity %> ₹<%= i.price.toFixed(2) %> ₹<%= i.lineTotal.toFixed(2) %>
<% if (paymentMethods && paymentMethods.length) { %>

Payment Details

<% paymentMethods.forEach(pm => { %>
<%= pm.label %> <% Object.keys(pm.details).forEach(key => { %>
<%= key.replace(/([A-Z])/g, ' $1') %>: <%= pm.details[key] %>
<% }) %>
<% }) %>
<% } %>
Sub Total ₹<%= summary.subTotal.toFixed(2) %>
Invoice Discount - ₹<%= summary.invoiceDiscountAmount.toFixed(2) %>
Tax ₹<%= summary.taxTotal.toFixed(2) %>
Total ₹<%= summary.grandTotal.toFixed(2) %>