{% set company_doc = frappe.get_doc("Company", company) %}

{{ company_doc.company_name }}

1063 Chestnut Level Road, Quarryville PA 17566
{% if company_doc.address %}{{ company_doc.address }}
{% endif %} {% 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 %}
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.

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