{% extends "portal/_layout.html" %} {% block title %}{{ t('Supplier portal') }}{% endblock %} {% block content %}

{{ t('Welcome') }}, {{ g.portal_user.full_name or g.portal_user.email }}

{{ nm(p) }} · {{ t('Supplier status') }}: {{ t(p.vendor_status|capitalize) }}

{{ t('Open requests for quotation') }}{{ icon('mail') }}
{{ open_rfqs|length }}
{{ t('waiting for your quotation') }}
{{ t('Purchase orders to confirm') }}{{ icon('cart') }}
{{ open_orders|length }}
{{ t('accept or reject') }}
{{ t('Owed to you') }}{{ icon('wallet') }}
{{ due|money }}
{{ t('approved invoices not yet paid') }}
{{ t('Documents expiring') }}{{ icon('file') }}
{{ expiring|length }}
{{ t('within 30 days or expired') }}
{% if open_rfqs %}

{{ t('Waiting for your quotation') }}

{% for r in open_rfqs %}{% endfor %}
{{ r.number }}{{ r.notes or '' }}{{ t('Closes') }} {{ r.closing_at.replace('T', ' ') if r.closing_at else '—' }}{{ t('Quoted') if r.rv_state == 'quoted' else '' }}
{% endif %} {% if open_orders %}

{{ t('Purchase orders to confirm') }}

{% for o in open_orders %}{% endfor %}
{{ o.number }}{{ o.date }}{{ o.amount_total|money }}
{% endif %} {% endblock %}