{% extends "layout/base.html" %} {% block content %}

Customers

{% if can_manage %}
Export CSV {% if autotask_enabled and autotask_configured %} {% endif %}
{% endif %}
{% if can_manage %} {% endif %} {% if customers %} {% for c in customers %} {% if can_manage %} {% endif %} {% endfor %} {% else %} {% endif %}
Customer Active Number of jobs Autotask company Autotask mappingActions
{{ c.name }} {% if c.active %} Active {% else %} Inactive {% endif %} {% if c.job_count > 0 %} {{ c.job_count }} {% else %} 0 {% endif %} {% if c.autotask_company_id %} {{ c.autotask_company_name or 'Unknown' }}
ID: {{ c.autotask_company_id }}
{% else %} Not mapped {% endif %}
{% set st = (c.autotask_mapping_status or '').lower() %} {% if not c.autotask_company_id %} Not mapped {% elif st == 'ok' %} OK {% elif st == 'renamed' %} Renamed {% elif st == 'missing' %} Missing {% elif st == 'invalid' %} Invalid {% else %} Unknown {% endif %} {% if c.autotask_last_sync_at %}
Checked: {{ c.autotask_last_sync_at|local_datetime }}
{% endif %}
No customers found.
{% if can_manage %} {% endif %} {% endblock %}