quote
This commit is contained in:
parent
bdfd096e99
commit
39de7f7340
|
|
@ -1232,19 +1232,21 @@ app.get('/api/quotes/:id/pdf', async (req, res) => {
|
|||
// Totals
|
||||
itemsHTML += `
|
||||
<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>
|
||||
</tr>`;
|
||||
if (!quote.tax_exempt) {
|
||||
itemsHTML += `
|
||||
<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>
|
||||
</tr>`;
|
||||
}
|
||||
itemsHTML += `
|
||||
<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-amount" style="font-size: 16px;">$${formatMoney(quote.total)}</td>
|
||||
</tr>
|
||||
|
|
|
|||
Loading…
Reference in New Issue