avoid breaks
This commit is contained in:
parent
b90a2a6340
commit
8ce739d713
|
|
@ -1374,7 +1374,7 @@ app.get('/api/invoices/:id/pdf', async (req, res) => {
|
|||
if (amountPaid > 0) {
|
||||
itemsHTML += `
|
||||
<tr class="footer-row">
|
||||
<td colspan="3" class="total-label" style="font-size: 12px; color: #059669;">Less: Payment received:</td>
|
||||
<td colspan="3" class="total-label" style="font-size: 12px; color: #059669;">Downpayment:</td>
|
||||
<td class="total-amount" style="font-size: 12px; color: #059669;">-$${amountPaid.toFixed(2)}</td>
|
||||
</tr>
|
||||
<tr class="footer-row">
|
||||
|
|
@ -1617,7 +1617,7 @@ app.get('/api/invoices/:id/html', async (req, res) => {
|
|||
if (amountPaid > 0) {
|
||||
itemsHTML += `
|
||||
<tr class="footer-row">
|
||||
<td colspan="3" class="total-label" style="font-size: 12px; color: #059669;">Less: Payment received:</td>
|
||||
<td colspan="3" class="total-label" style="font-size: 12px; color: #059669;">Downpayment:</td>
|
||||
<td class="total-amount" style="font-size: 12px; color: #059669;">-$${amountPaid.toFixed(2)}</td>
|
||||
</tr>
|
||||
<tr class="footer-row">
|
||||
|
|
|
|||
|
|
@ -206,6 +206,10 @@
|
|||
position: absolute;
|
||||
bottom: 0;
|
||||
}
|
||||
tr {
|
||||
page-break-inside: avoid;
|
||||
break-inside: avoid;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
|||
|
|
@ -202,6 +202,10 @@
|
|||
position: absolute;
|
||||
bottom: 0;
|
||||
}
|
||||
tr {
|
||||
page-break-inside: avoid;
|
||||
break-inside: avoid;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
|||
Loading…
Reference in New Issue