{% extends "client_portal/base.html" %} {% from "components/ui.html" import page_header %} {% block title %}{{ quote.quote_number }} - {{ _('Client Portal') }}{% endblock %} {% block content %} {% set breadcrumbs = [ {'text': _('Client Portal'), 'url': url_for('client_portal.dashboard')}, {'text': _('Quotes'), 'url': url_for('client_portal.quotes')}, {'text': quote.quote_number} ] %} {{ page_header( icon_class='fas fa-file-contract', title_text=quote.quote_number, subtitle_text=_('Quote Details'), breadcrumbs=breadcrumbs ) }}
{{ quote.client.name if quote.client else 'N/A' }}
{% if quote.client and quote.client.email %}{{ quote.client.email }}
{% endif %} {% if quote.client and quote.client.address %}{{ quote.client.address }}
{% endif %}{{ _('Title') }}: {{ quote.title }}
{{ _('Date') }}: {{ quote.created_at|user_date if quote.created_at else 'N/A' }}
{% if quote.valid_until %}{{ _('Valid Until') }}: {{ quote.valid_until|format_date }}
{% endif %}{{ _('Status') }}: {{ quote.status|title }}
{% if quote.is_expired %}{{ _('This quote has expired.') }}
{% endif %}{{ quote.description }}
| {{ _('Description') }} | {{ _('Quantity') }} | {{ _('Unit Price') }} | {{ _('Total') }} |
|---|---|---|---|
|
{% if item.display_name %}
{{ item.display_name }}
{% if item.description and item.description != item.display_name and item.description != '-' %} {{ item.description }}{% endif %} {% else %} {{ item.description }} {% endif %} {% if item.line_kind == 'expense' and item.category %} {{ item.category }}{% endif %} {% if item.line_kind == 'good' and item.sku %} {{ _('SKU') }}: {{ item.sku }}{% endif %} |
{{ "%.2f"|format(item.quantity) }} {% if item.unit %}{{ item.unit }}{% endif %} | {{ "%.2f"|format(item.unit_price) }} {{ quote.currency_code }} | {{ "%.2f"|format(item.total_amount) }} {{ quote.currency_code }} |
{{ quote.terms }}