{% extends "documents/base_document.html" %} {% load humanize %} {# Quote counterpart to sales_invoice.html. Overrides the same blocks. #} {% block extra_styles %} /* base_document.html ships banners for the invoice statuses. Quotes add expired/accepted/lost, which have no invoice equivalent. */ .doc-status-banner.status-expired { background: #6b7280; color: #fff; } .doc-status-banner.status-accepted { background: {{ brand.colors.green }}; color: #fff; } .doc-status-banner.status-lost { background: #991b1b; color: #fff; } .validity-note { margin-top: 18px; padding: 10px 14px; border-left: 3px solid {{ brand.colors.bronze }}; background: #faf7f2; font-size: 11px; } /* Keep a conditions/notes block whole rather than splitting a paragraph across a page break. */ .validity-note, .terms-box { page-break-inside: avoid; } .terms-box { margin-top: 18px; font-size: 11px; } .terms-box h4 { margin: 0 0 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: {{ brand.colors.forest }}; } {% endblock %} {% block doc_type %}QUOTE{% endblock %} {% block doc_number %} {{ quote.quote_number }}{% if quote.revision_number > 1 %} rev {{ quote.revision_number }}{% endif %} {% endblock %} {% block doc_dates %}
Date: {{ quote.created_at|date:"M j, Y" }}
{% if quote.quote_expiration_date %}
Valid until: {{ quote.quote_expiration_date|date:"M j, Y" }}
{% endif %} {% endblock %} {% block order_details %}
Quote #: {{ quote.quote_number }}
{% if quote.customer_po_number %}
Customer PO #: {{ quote.customer_po_number }}
{% endif %} {% if payment_terms %}
Terms: {{ payment_terms }}
{% endif %} {% if shipping_terms %}
Shipping: {{ shipping_terms }}
{% endif %} {% endblock %} {% block status_banner %} {% if is_expired %}
THIS QUOTE HAS EXPIRED
{% elif quote.status == 'accepted' %}
ACCEPTED
{% elif quote.status == 'lost' %}
CLOSED
{% elif quote.status == 'draft' %}
DRAFT — NOT YET ISSUED
{% elif quote.status == 'cancelled' %}
CANCELED
{% endif %} {% endblock %} {% block payment_section %} {% if quote.quote_expiration_date and not is_expired %}
Pricing held until {{ quote.quote_expiration_date|date:"F j, Y" }}. Quantities and lead times are subject to availability at time of order.
{% endif %} {% if quote.special_conditions %}

Special Conditions

{{ quote.special_conditions|linebreaks }}
{% endif %} {% if quote.customer_notes %}

Notes

{{ quote.customer_notes|linebreaks }}
{% endif %} {% endblock %}