This commit is contained in:
Andreas Knuth 2026-02-27 11:52:20 -06:00
parent 39de7f7340
commit a9c190bbf6
1 changed files with 6 additions and 6 deletions

View File

@ -1232,22 +1232,22 @@ app.get('/api/quotes/:id/pdf', async (req, res) => {
// Totals
itemsHTML += `
<tr class="footer-row">
<td colspan="2" class="total-label">&nbsp:</td>
<td class="total-label">Subtotal:</td>
<td colspan="2" class="total-label">&nbsp</td>
<td class="total-label">Subtotal</td>
<td class="total-amount">$${formatMoney(quote.subtotal)}</td>
</tr>`;
if (!quote.tax_exempt) {
itemsHTML += `
<tr class="footer-row">
<td colspan="2" class="total-label">&nbsp:</td>
<td class="total-label">Tax (${quote.tax_rate}%):</td>
<td colspan="2" class="total-label">&nbsp</td>
<td class="total-label">Tax (${quote.tax_rate}%)</td>
<td class="total-amount">$${formatMoney(quote.tax_amount)}</td>
</tr>`;
}
itemsHTML += `
<tr class="footer-row">
<td colspan="2" class="total-label" style="font-size: 12px;" font-weight="400">This quote is valid for 14 days. We appreciate your business</td>
<td class="total-label" style="font-size: 16px;">TOTAL:</td>
<td colspan="2" style="font-size: 12px; font-weight=400">This quote is valid for 14 days. We appreciate your business</td>
<td class="total-label" style="font-size: 16px;">TOTAL</td>
<td class="total-amount" style="font-size: 16px;">$${formatMoney(quote.total)}</td>
</tr>
<tr class="footer-row">