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 @@ + + +
+ + {{ company_doc.company_name }} ++ +
+ 1063 Chestnut Level Road |
+
+
+ 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** + |
+
|
+
+ {% if doc.custom_subscription_data %}
+
+ {{ doc.custom_subscription_data }}
+
+ {% endif %}
+
+ {% if doc.custom_invoice_notes %}
+
+ {{ doc.custom_invoice_notes }}
+
+ {% endif %}
+
+ |
+
| Item | +Description | +Qty | +Rate | +Amount | +
|---|---|---|---|---|
| {{ 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. +
+