{% extends 'quotes/base.html' %} {% load custom_tags_and_filters %} {% block title %}Quote{% endblock %} {% block content %}

Quote

{{ quote.name }} {% if quote.quote_number %}({{ quote.quote_number }}){% endif %}

{% if not requires_approval and can_edit %}
{% csrf_token %} {% button type="save" submit=False name="publish_quote" size="small" value="Publish" icon="glyphicon-ok" onclick="if (confirm('Are you sure you want to publish this quote?')) {submit_and_disable(this)}" %}
{% endif %} {% if requires_approval and can_edit %}
{% csrf_token %} {% button type="warn" submit=False name="submit_quote" size="small" value="Request Approval" icon="glyphicon-ok" onclick="if (confirm('Are you sure you want to submit this quote for approval?')) {submit_and_disable(this)}" %}
{% endif %} {% if can_approve %}
{% csrf_token %} {% button type="save" submit=False name="approve_quote" size="small" value="Approve" icon="glyphicon-ok" onclick="if (confirm('Are you sure you want to approve this quote?')) {submit_and_disable(this)}" %} {% button type="delete" submit=False name="deny_quote" size="small" value="Deny" icon="glyphicon-remove" onclick="if (confirm('Are you sure you want to deny this quote?')) {submit_and_disable(this)}" %}
{% endif %} {% if can_edit_metadata %} {% endif %} {% if show_send_emails_button %}
{% csrf_token %} {% button type="save" submit=False name="send_emails" size="small" value="Send Email" icon="glyphicon-send" onclick="if (confirm('Are you sure you want to send quote email?')) {submit_and_disable(this)}" %}
{% endif %} {% if quote.is_published %}
{% csrf_token %} {% button type="warn" submit=True name="render" size="small" value="Render Quote File" icon="glyphicon-refresh" %}
{% endif %}
Created on {{ quote.created_date|date:"SHORT_DATETIME_FORMAT" }} by {{ quote.creator }}
{% if updated %}
Updated on {{ quote.updated_date|date:"SHORT_DATETIME_FORMAT" }}
{% endif %} {% if quote.published_date %}
Published on {{ quote.published_date|date:"SHORT_DATETIME_FORMAT" }}
{% endif %} {% if quote.last_emails_sent_date %}
Last emails sent on {{ quote.last_emails_sent_date|date:"SHORT_DATETIME_FORMAT" }}
{% endif %} {% if quote.expiration_date %}
Expires on {{ quote.expiration_date|date:"SHORT_DATE_FORMAT" }} {% if quote.is_expired %}- Expired{% endif %}
{% endif %} {% if quote.file %} {% endif %}
Quote Details

Project
{% if quote.project %} {{ quote.project.name }} {% else %} No project assigned to quote. {% endif %}

NEMO Users
{% if quote.users and quote.users.all %} {% for user in quote.users.all %} {{ user }}
{% endfor %} {% else %} No NEMO users assigned to quote. {% endif %}

Email Addresses
{% if quote.emails %} {% for email in quote.emails %} {{ email }}
{% endfor %} {% else %} No email addresses assigned to quote. {% endif %}

Total {{ quote.total_display }}
{% if can_edit %}{% endif %} {% if quote_items %} {% for item in quote_items %} {% if can_edit %} {% endif %} {% endfor %} {% if quote.configuration.tax and quote.add_tax %} {% if can_edit %} {% endif %} {% endif %} {% if quote.configuration.tax and not quote.add_tax and can_edit %} {% endif %} {% else %} {% endif %}
Item Quantity Rate Total
{{ item.description }} {{ item.quantity }} {{ item.display_rate }} {{ item.total_display }}
{% csrf_token %}
Tax ({{ quote.configuration.tax_name }}) {{ quote.tax_display }} {{ quote.tax_amount_display }}
{% csrf_token %}
{% csrf_token %}
{{ quote.configuration.tax_name }} {{ quote.configuration.tax|floatformat:2 }}% (not applied)
No items added to this quote yet.
{% if can_edit %}

Add Quote Item

Add a custom item to the quote

{% csrf_token %} {% if custom_item_form.non_field_errors %}
    {% for error in custom_item_form.non_field_errors %}
  • {{ error }}
  • {% endfor %}
{% endif %}
{% if custom_item_form.description.errors %} {{ custom_item_form.description.errors|striptags }} {% endif %}
{% if custom_item_form.quantity.errors %} {{ custom_item_form.quantity.errors|striptags }} {% endif %}
{% if custom_item_form.rate_type.errors %}
{{ custom_item_form.rate_type.errors|striptags }}
{% endif %}
{% if custom_item_form.amount.errors %} {{ custom_item_form.amount.errors|striptags }} {% endif %}
{% if custom_item_form.minimum_charge.errors %} {{ custom_item_form.minimum_charge.errors|striptags }} {% endif %}
{{ quote.configuration.currency_symbol }}0 {{ quote.configuration.currency }}

Search Existing Rates

{% csrf_token %}
{% if search_selection %} {{ found_count }} rates found for {{ search_selection }} {% endif %} {% if active_quote_item_tab == "rate" and rate_item_form.errors %}
Error adding item for rate {{ selected_rate.quote_display }}
    {% if rate_item_form.non_field_errors %} {% for error in rate_item_form.non_field_errors %}
  • {{ error }}
  • {% endfor %} {% endif %} {% for field in rate_item_form %} {% if field.errors %}
  • {{ field.label }}: {{ field.errors|striptags }} {% if field.value %}(submitted value: "{{ field.value }}"){% endif %}
  • {% endif %} {% endfor %}
{% endif %} {% if found_count > 0 %} {% for rate in rates %} {% endfor %}
Rate Effective Date Quantity Amount Total
{{ rate.quote_display }}
{{ rate.effective_date|default_if_none:"" }}
{{ rate.display_rate }}
{% csrf_token %}
{% endif %}
{% endif %} {% endblock %}