{% extends 'base.html' %} {% load static %} {% load custom_filters %} {% block page_title %}Yearly Sales Targets{% endblock %} {% block header_actions %}
Back to Dashboard
{% endblock %} {% block content %}
Yearly Sales Targets - {{ current_year }}

{{ targets.count }}

Total Targets

{{ completed_targets|default:"0" }}

Completed

{{ in_progress_targets|default:"0" }}

In Progress

{{ not_started_targets|default:"0" }}

Not Started

{% for target in targets %} {% empty %} {% endfor %}
Product Target Quantity Target Revenue Progress Achieved Remaining Status Actions
{{ target.product.name }} SKU: {{ target.product.sku }}
{{ target.target_quantity }} units KSh {{ target.target_revenue|floatformat:2 }}
{{ target.progress_percentage|floatformat:1 }}%
KSh {{ target.revenue_achieved|floatformat:2 }} KSh {{ target.sales_count|default:"0" }} sales
{% with remaining=target.target_quantity|add:"-"|subtract:target.sales_count|default:0 %} {{ remaining }} units {% endwith %} {% if target.progress_percentage >= 100 %} Completed {% elif target.progress_percentage >= 50 %} In Progress {% else %} Needs Attention {% endif %}
No targets set for {{ current_year }}

Set your first sales target to track progress throughout the year.

{% endblock %}