quote
This commit is contained in:
parent
bdfd096e99
commit
39de7f7340
|
|
@ -1232,19 +1232,21 @@ app.get('/api/quotes/:id/pdf', async (req, res) => {
|
||||||
// Totals
|
// Totals
|
||||||
itemsHTML += `
|
itemsHTML += `
|
||||||
<tr class="footer-row">
|
<tr class="footer-row">
|
||||||
<td colspan="3" class="total-label">Subtotal:</td>
|
<td colspan="2" class="total-label"> :</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="3" class="total-label">Tax (${quote.tax_rate}%):</td>
|
<td colspan="2" class="total-label"> :</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;">This quote is valid for 14 days. We appreciate your business</td>
|
<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 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>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue