<% if (user.profileImage) { %> <% } %>
<%= user.companyName %>
<% if (user.licenseNumber) { %> License No: <%= user.licenseNumber %>
<% } %> <% if (user.email) { %> <%= user.email %>
<% } %> <% if (user.phone) { %> <%= user.phone %>
<% } %> <% const fullAddress = [ user.address, user.country ].filter(val => val && val !== "-").join(', '); %> <% if (fullAddress) { %> <%= fullAddress %> <% } %>
# <%= EstimateNo %>
Date: <%= date %>
Valid Till: <%= dueDate %>
To
<%= client.name %>
<% if (client.email && client.email !== "-") { %> <%= client.email %>
<% } %> <% if (client.phone && client.phone !== "-") { %> <%= client.phone %> <% } %>
Items
<% if (taxType === "on_total") { %> <% } else { %> <% } %> <% items.forEach(item => { %> <% }) %>
Description Qty Price DiscountTaxableTaxTotal
<%= item.name %>
<%= item.description %>
<%= item.quantity %> <%= user.currencySymbol %><%= item.price.toFixed(2) %> <%= user.currencySymbol %><%= item.discountAmount.toFixed(2) %> <% if (taxType === "on_total") { %> <% if (item.isTaxable) { %> <% } else { %> <% } %> <% } else { %> <%= user.currencySymbol %><%= item.taxAmount.toFixed(2) %> <% } %> <%= user.currencySymbol %><%= item.lineTotal.toFixed(2) %>
Subtotal <%= user.currencySymbol %><%= summary.subTotal.toFixed(2) %>
Discount - <%= user.currencySymbol %><%= summary.estimateDiscountAmount.toFixed(2) %>
Tax <%= taxType === "on_total" ? "on Total" : "Per Item" %> <%= user.currencySymbol %><%= summary.taxTotal.toFixed(2) %>
Total <%= user.currencySymbol %><%= summary.grandTotal.toFixed(2) %>
<% if (user.terms && user.terms.trim() !== "") { %>
Terms & Conditions
<%= user.terms %>
* Please review all terms carefully before confirming this estimate.
<% } %> <% if (attachments && attachments.length) { %>
<% attachments.forEach(att => { %>
<% if (att.type && att.type.startsWith("image")) { %> <% } else if (att.type && att.type.includes("pdf")) { %>
📄 <%= att.name %>
PDF Document
View PDF
<% } else { %>
Attachment: <%= att.name %>
<% } %>
<% }) %>
<% } %>