{# Settings ▸ Work: the customer tree (views.customers) on the left, the editor of the selected node on the right. Rendered by pluginhost for the Settings page (outside its form: it saves on its own through /work/api/node); workload.js fills the editor from #wl-cust JSON. Links: /settings#work&n=ID opens a node, #work&new a new customer. #}

Customers

Customers, sub-customers, projects and tasks: rates, billable default, notes. Each one is saved with the editor's own Save; the plugin's settings below use the Save at the bottom.

{% if v.archived_count %} {{ 'Hide' if v.show_archived else 'Show' }} archived ({{ v.archived_count }}) {% endif %} {% if v.rows %}rate · this month{% endif %}
{% if not v.rows %}

Nothing here yet. A customer can have sub-customers, projects and tasks (tasks also under projects). Each level can set its own hourly rate, billable default and currency — or inherit them from above.

{% endif %}
    {% for r in v.rows %}
  • {{ {"client": "◆", "project": "▣", "task": "•"}[r.kind] if not r.sub else "◇" }} {{ r.name }}{{ "sub-customer" if r.sub else ("" if r.kind == "client" else r.kind) }} {% if not r.billable %}not billable{% endif %} {{ r.rate }}/h {{ r.month }}
  • {% endfor %}