{% extends 'base.html' %} {% block title %}{{ r.name }}{% endblock %} {% block content %}
← {{ 'Klanten' if r.kind == 'klant' else 'Partners' }}

{{ r.name }}

{{ RKIND.get(r.kind) }} {{ [r.type, r.city]|select|join(' · ') }}
{% if r.kind == 'klant' and members %}
{% endif %} Bewerken

Contactpersonen

{% for m in members %}
{{ m.name }} {% if m.relation_role %}· {{ m.relation_role }}{% endif %}
{{ [m.email, m.phone]|select|join(' · ') }}
{% if m.type != 'partner' %}{{ STATUS.get(m.status) }}{% endif %}
{% else %}

Nog geen contactpersonen.

{% endfor %}
{% if candidates %} {% endif %} Nieuwe contactpersoon
{% if r.kind == 'partner' %}

Producten van deze leverancier

{% if products %}
{% for p in products %} {% endfor %}
SKUNaamPrijs excl.Bijgewerkt
{% else %}

Nog geen producten gekoppeld. Vul deze naam in als leverancier bij een product of in een import.

{% endif %}
{% endif %}

Recente activiteit

    {% for a in activities %}
  • {{ ACT.get(a.type, a.type) }} · {{ a.contact_name }} · {{ a.created_at|dt }}{% if a.user_name %} · {{ a.user_name }}{% endif %}
    {{ a.body }}
  • {% else %}
  • Nog geen activiteit.
  • {% endfor %}

Gegevens

{% if r.type %}
Type
{{ r.type }}
{% endif %} {% if r.email %}
E-mail
{{ r.email }}
{% endif %} {% if r.phone %}
Telefoon
{{ r.phone }}
{% endif %} {% if r.address or r.city %}
Adres
{{ [r.address, (r.postcode ~ ' ' ~ r.city)|trim]|select|join('\n') }}
{% endif %} {% if r.website %}
Website
{{ r.website }}
{% endif %} {% if r.kvk %}
KvK
{{ r.kvk }}
{% endif %}
Aangemaakt
{{ r.created_at|dt('%d-%m-%Y') }}
{% if r.notes %}

Notities

{{ r.notes }}

{% endif %}
{% if tasks %}

Open taken

{% for t in tasks %}
{{ t.title }}
{{ t.contact_name }}{% if t.due_date %} · {{ t.due_date|dt('%d-%m-%Y') }}{% endif %}
{% endfor %}
{% endif %} {% if r.kind == 'klant' %}

Offertes

{% for qt in quotes %}

{{ qt.number }} {{ QSTATUS.get(qt.status) }}
{{ qt.contact_name }} · {{ qt.date|dt('%d-%m-%Y') }} · {{ qt.total|euro }}

{% else %}

Nog geen offertes.

{% endfor %}
{% endif %}
{% endblock %}