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

Policy: {{ policy.name }}

ID: {{ policy.id }} · Period: {{ policy.period_type }} · Status: {{ policy.status }} · Modes: {% if policy.allow_bank %}Bank{% endif %} {% if policy.allow_cash %}Cash{% endif %}
{% if policy.description %}
{{ policy.description }}
{% endif %}
Add Target
Who this target applies to.
Scope ref options change based on selected scope.
These filters only affect the Individual employee dropdown.
Auto-normalized to lowercase.
Targets / Schemes / Rules
{% if not policy.targets %}
No targets yet. Add one above.
{% endif %}
{% for t in policy.targets %}

Add Scheme (Reward)
Used for pool-based distributions (equal/workload/percentage/formula).
{% if not t.schemes %}
No schemes added under this target.
{% endif %} {% for s in t.schemes %}
Scheme #{{ s.id }} ({{ s.reward_type }})
Pool: {% if s.total_amount %}₹{{ s.total_amount }}{% else %}-{% endif %} · {{ s.currency }}
Add Distribution Rule
Keep JSON valid. Examples are shown on the right.
Config JSON Examples (Copy/Paste)
Use the same examples you already have (Equal / Fixed / % / Slab / Workload / Formula).

Existing Rules
{% if not s.distribution_rules %}
No rules added yet.
{% else %}
{% for r in s.distribution_rules %} {% endfor %}
ID Type Description Config
{{ r.id }} {{ r.distribution_type }} {{ r.description or "-" }}
{{ (r.config_json or {}) | tojson(indent=2) }}
{% endif %}
{% endfor %}
{% endfor %}
{% endblock %}