{% extends "base.html" %} {% from "_macros.html" import branch_tag with context %} {% block title %}{{ t('Approval Workflow') }}{% endblock %} {% block content %}
| {{ t('Rule') }} | {{ t('Applies to') }} | {{ t('From amount') }} | {{ t('Up to') }} | {{ t('Steps') }} | {{ t('Priority') }} | {{ t('Status') }} |
|---|---|---|---|---|---|---|
| {{ r.name }} | {{ r.bcode or t('All branches') }}{% if r.department %} · {{ r.department }}{% endif %} | {{ r.min_amount|money(currency) }} | {{ r.max_amount|money(currency) if r.max_amount is not none else '∞' }} | {% for s in steps.get(r.id, []) %}{{ s.step_no }}. {{ s.name }}{% if s.dynamic == 'project_manager' %} ({{ t('Project manager') }}){% endif %}{% if s.role_en %} ({{ nm({'name_en': s.role_en, 'name_ar': s.role_ar}) }}){% endif %}{% if s.mode == 'all' %} · {{ t('all') }}{% elif s.required > 1 %} · {{ s.required }}{% endif %} {% endfor %} | {{ r.priority }} | {{ t('Active') if r.active else t('Off') }} |
| {{ t('No rule: these documents need no approval.') }} + {{ t('Add a rule') }} | ||||||
{{ t('Amounts are in the company currency') }} ({{ currency }}).
{% endblock %}