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

Sales Order
{{ doc.name }}
Date: {{ frappe.utils.formatdate(doc.transaction_date, "MM-dd-yyyy") }}
{% if doc.delivery_date %} Delivery Date: {{ frappe.utils.formatdate(doc.delivery_date, "MM-dd-yyyy") }}
{% endif %} Terms: {{ doc.payment_terms_template or "Net 30" }}
{{ 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 }}

This Sales Order is not an invoice. Pricing and availability subject to confirmation. Thank you for your business.