quote
This commit is contained in:
parent
39de7f7340
commit
a9c190bbf6
12
server.js
12
server.js
|
|
@ -1232,22 +1232,22 @@ app.get('/api/quotes/:id/pdf', async (req, res) => {
|
||||||
// Totals
|
// Totals
|
||||||
itemsHTML += `
|
itemsHTML += `
|
||||||
<tr class="footer-row">
|
<tr class="footer-row">
|
||||||
<td colspan="2" class="total-label"> :</td>
|
<td colspan="2" class="total-label"> </td>
|
||||||
<td class="total-label">Subtotal:</td>
|
<td class="total-label">Subtotal</td>
|
||||||
<td class="total-amount">$${formatMoney(quote.subtotal)}</td>
|
<td class="total-amount">$${formatMoney(quote.subtotal)}</td>
|
||||||
</tr>`;
|
</tr>`;
|
||||||
if (!quote.tax_exempt) {
|
if (!quote.tax_exempt) {
|
||||||
itemsHTML += `
|
itemsHTML += `
|
||||||
<tr class="footer-row">
|
<tr class="footer-row">
|
||||||
<td colspan="2" class="total-label"> :</td>
|
<td colspan="2" class="total-label"> </td>
|
||||||
<td class="total-label">Tax (${quote.tax_rate}%):</td>
|
<td class="total-label">Tax (${quote.tax_rate}%)</td>
|
||||||
<td class="total-amount">$${formatMoney(quote.tax_amount)}</td>
|
<td class="total-amount">$${formatMoney(quote.tax_amount)}</td>
|
||||||
</tr>`;
|
</tr>`;
|
||||||
}
|
}
|
||||||
itemsHTML += `
|
itemsHTML += `
|
||||||
<tr class="footer-row">
|
<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 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-label" style="font-size: 16px;">TOTAL</td>
|
||||||
<td class="total-amount" style="font-size: 16px;">$${formatMoney(quote.total)}</td>
|
<td class="total-amount" style="font-size: 16px;">$${formatMoney(quote.total)}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="footer-row">
|
<tr class="footer-row">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue