quotes
This commit is contained in:
parent
a9c190bbf6
commit
c17cc362e4
11
server.js
11
server.js
|
|
@ -1232,26 +1232,23 @@ app.get('/api/quotes/:id/pdf', async (req, res) => {
|
|||
// Totals
|
||||
itemsHTML += `
|
||||
<tr class="footer-row">
|
||||
<td colspan="2" class="total-label"> </td>
|
||||
<td class="total-label">Subtotal</td>
|
||||
<td colspan="3" 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"> </td>
|
||||
<td class="total-label">Tax (${quote.tax_rate}%)</td>
|
||||
<td colspan="3" 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" 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="3" 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">
|
||||
<td colspan="4" class="thank-you">Thank you for your business!</td>
|
||||
<td colspan="4" class="thank-you">This quote is valid for 14 days. We appreciate your business </td>
|
||||
</tr>`;
|
||||
|
||||
let tbdNote = quote.has_tbd ? '<p style="font-size: 12px; margin-top: 20px;"><em>* Note: This quote contains items marked as "TBD". The final total may vary.</em></p>' : '';
|
||||
|
|
|
|||
Loading…
Reference in New Issue