{% 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 %}

Payment Reminder
{{ doc.name }}
Date: {{ frappe.utils.formatdate(doc.posting_date, "MM-dd-yyyy") }}
Customer: {{ doc.customer }}
Amount Due: ${{ doc.grand_total }}
{{ doc.customer_name }}
{{ doc.address_display or doc.customer_address }}
PAYMENT REMINDER
Our records show the following invoice(s) are past due. Please remit payment at your earliest convenience.
{% for row in doc.invoices %} {% endfor %}
Invoice Due Date Days Overdue Outstanding Interest
{{ row.sales_invoice }} {{ frappe.utils.formatdate(row.due_date, "MM-dd-yyyy") }} {{ row.overdue_days }} ${{ row.outstanding_amount }} ${{ row.interest }}

Total Outstanding:${{ doc.total_outstanding }}

{% if doc.dunning_fee and doc.dunning_fee > 0 %}

Dunning Fee:${{ doc.dunning_fee }}

{% endif %} {% if doc.total_interest and doc.total_interest > 0 %}

Total Interest:${{ doc.total_interest }}

{% endif %}

Amount Due: ${{ doc.grand_total }}

We value your business and would like to resolve this promptly. Please contact us if you have any questions or if payment has already been sent. We accept payments by check or over the phone using a debit or credit card. Thank you for your prompt attention — NS Innovations