{% extends 'base.html' %} {% load static %} {% load custom_filters %} {% block page_title %}Yearly Sales Targets{% endblock %} {% block header_actions %}
{% endblock %} {% block content %}Total Targets
Completed
In Progress
Not Started
| 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 }} |
|
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. |
|||||||