Invoice and Sales Order print format updated.

This commit is contained in:
Ty Reynolds
2026-01-15 10:02:52 -05:00
parent bb60e17770
commit 8efe79fb66
2 changed files with 36 additions and 82 deletions

View File

@@ -1,5 +1,5 @@
<style> <style>
/* Reserve space in PRINT/PDF so table does not overlap window address */ /* 💡 Reserve space in PRINT/PDF so table does not overlap window address */
@media print { @media print {
.window-address-space { .window-address-space {
padding-top: 1in; padding-top: 1in;
@@ -112,59 +112,30 @@
</tbody> </tbody>
</table> </table>
<!-- Totals (boxed, tight to items table) --> <!-- Totals -->
<table style="width:40%; margin-left:auto; border-collapse:collapse; font-size:14px; margin-top:0;"> <div style="font-family: Helvetica, Arial, sans-serif; font-size: 15px; color: #333; margin-top: 10px; width: 40%; margin-left: auto;">
<tbody> <p style="display:flex; justify-content:space-between;">
<strong>Subtotal:</strong><span>{{ doc.total }}</span>
<tr> </p>
<td style="width:220px; padding:6px 8px; text-align:right;">
<strong>Subtotal</strong>
</td>
<td style="padding:6px 12px; text-align:right; border:1px solid #ccc;">
{{ doc.total }}
</td>
</tr>
{% for tax in doc.taxes %} {% for tax in doc.taxes %}
<tr> <p style="display:flex; justify-content:space-between;">
<td style="padding:6px 8px; text-align:right;"> <strong>{{ tax.account_head }} ({{ tax.rate }}%):</strong>
<strong>{{ tax.account_head }} ({{ tax.rate }}%)</strong> <span>{{ tax.tax_amount }}</span>
</td> </p>
<td style="padding:6px 12px; text-align:right; border:1px solid #ccc;">
{{ tax.tax_amount }}
</td>
</tr>
{% endfor %} {% endfor %}
<p style="display:flex; justify-content:space-between;">
<strong>Total:</strong><span>{{ doc.grand_total }}</span>
</p>
<p style="display:flex; justify-content:space-between;">
<strong>Paid:</strong><span>{{ doc.total_advance }}</span>
</p>
<p style="display:flex; justify-content:space-between;">
<strong>Balance Due:</strong><span>{{ doc.outstanding_amount }}</span>
</p>
</div>
<tr>
<td style="padding:6px 8px; text-align:right;">
<strong>Total</strong>
</td>
<td style="padding:6px 12px; text-align:right; border:1px solid #ccc;">
{{ doc.grand_total }}
</td>
</tr>
<tr>
<td style="padding:6px 8px; text-align:right;">
<strong>Paid</strong>
</td>
<td style="padding:6px 12px; text-align:right; border:1px solid #ccc;">
{{ doc.total_advance }}
</td>
</tr>
<tr>
<td style="padding:6px 8px; text-align:right;">
<strong>Balance Due</strong>
</td>
<td style="padding:6px 12px; text-align:right; border:1px solid #ccc;">
{{ doc.outstanding_amount }}
</td>
</tr>
</tbody>
</table>
</div> <!-- end print space wrapper --> </div> <!-- end print space wrapper -->

View File

@@ -115,40 +115,23 @@
</table> </table>
<!-- Totals --> <!-- Totals -->
<table style="width:73%; margin-left:auto; border-collapse:collapse; font-size:14px; margin-top:0px;"> <div style="font-family: Helvetica, Arial, sans-serif; font-size: 15px; color: #333; margin-top: 10px; width: 40%; margin-left: auto;">
<tbody> <p style="display:flex; justify-content:space-between;">
<strong>Subtotal:</strong><span>{{ doc.total }}</span>
<tr> </p>
<td style="padding:6px 8px; text-align:right;">
<strong>Subtotal</strong>
</td>
<td style="padding:6px 12px; text-align:right; border:1px solid #ccc;">
{{ doc.total }}
</td>
</tr>
{% for tax in doc.taxes %} {% for tax in doc.taxes %}
<tr> <p style="display:flex; justify-content:space-between;">
<td style="padding:6px 8px; text-align:right;"> <strong>{{ tax.account_head }} ({{ tax.rate }}%):</strong>
<strong>{{ tax.account_head }} ({{ tax.rate }}%)</strong> <span>{{ tax.tax_amount }}</span>
</td> </p>
<td style="padding:6px 12px; text-align:right; border:1px solid #ccc;">
{{ tax.tax_amount }}
</td>
</tr>
{% endfor %} {% endfor %}
<p style="display:flex; justify-content:space-between;">
<strong>Total:</strong><span>{{ doc.grand_total }}</span>
</p>
</div>
<tr>
<td style="padding:6px 8px; text-align:right;">
<strong>Total</strong>
</td>
<td style="padding:6px 12px; text-align:right; border:1px solid #ccc;">
<strong>{{ doc.grand_total }}</strong>
</td>
</tr>
</tbody>
</table>
</div> </div>