From d45e7cbbe1aeb186dcd6a21761aead90f33edb0f Mon Sep 17 00:00:00 2001 From: Ty Reynolds Date: Mon, 11 May 2026 15:40:04 -0400 Subject: [PATCH] New invoice print format for new envelopes. --- .../print_formats/double_window_invoice.j2 | 215 ++++++++++++++++++ 1 file changed, 215 insertions(+) create mode 100644 ns_app/print_formats/print_formats/double_window_invoice.j2 diff --git a/ns_app/print_formats/print_formats/double_window_invoice.j2 b/ns_app/print_formats/print_formats/double_window_invoice.j2 new file mode 100644 index 0000000..27baccb --- /dev/null +++ b/ns_app/print_formats/print_formats/double_window_invoice.j2 @@ -0,0 +1,215 @@ + + +
+ + {% set company_doc = frappe.get_doc("Company", company) %} + + + + + + + + +
+

+ {{ company_doc.company_name }} +

+ +

+ 1063 Chestnut Level Road
+ Quarryville PA 17566
+ + {% if company_doc.phone_no %} + Phone: {{ company_doc.phone_no }} + {% endif %} + + {% if company_doc.email %} + | Email: {{ company_doc.email }} + {% endif %} +

+
+ Invoice + {{ doc.name }}
+ + Date: + {{ frappe.utils.formatdate(doc.posting_date, "MM-dd-yyyy") }} +
+ + + + + + + +
+ Customer Number: {{doc.customer}}
+ Due Date: {{ frappe.utils.formatdate(doc.due_date, "MM-dd-yyyy") }}
+ Terms: {{ doc.payment_terms_template or "Net 30" }}
+ **Please include invoice
number with check**
+
+ + + +
+ {{ doc.customer_name }}
+ {{ doc.address_display or doc.customer_address }} +
+ + +
+ + + {% if doc.custom_subscription_data or doc.custom_invoice_notes %} + + + + +
+ + {% if doc.custom_subscription_data %} +
+ {{ doc.custom_subscription_data }} +
+ {% endif %} + + {% if doc.custom_invoice_notes %} +
+ {{ doc.custom_invoice_notes }} +
+ {% endif %} + +
+ {% endif %} + + + + + + + + + + + + + + + + + {% for row in doc.items %} + + + + + + + + {% endfor %} + +
ItemDescriptionQtyRateAmount
{{ row.item_code }}{{ row.item_name }}{{ row.qty }}{{ row.rate }}{{ row.amount }}
+ + +
+

+ Subtotal:{{ doc.total }} +

+ + {% for tax in doc.taxes %} +

+ {{ tax.account_head }} ({{ tax.rate }}%): + {{ tax.tax_amount }} +

+ {% endfor %} + +

+ Total:{{ doc.grand_total }} +

+

+ Paid:{{ doc.total_advance }} +

+ + {% set balance = doc.outstanding_amount or 0 %} + + {% if balance == 0 %} + {% set balance_color = "#2e7d32" %} + {% elif balance > 0 %} + {% set balance_color = "#c62828" %} + {% else %} + {% set balance_color = "#ef6c00" %} + {% endif %} + +

+ Balance Due: + {{ balance }} +

+ + + +
+ + +
+ + +
+

+ Prompt payment is always appreciated. We accept payments by check or over the phone using a debit or credit card. Automatic payment setup is also available upon request. + + + Invoices over 30 days may be charged a late payment fee of 1.5% per month with a minimum fee of $5. + + Thanks for your business. +

+
+ + {% set balance = doc.outstanding_amount or 0 %} + + + {% if balance == 0 %} +
+
+ PAID +
+
+ {% endif %} + +