{% extends 'base.html' %}
{% block title %}Supplier Stats{% endblock %}
{% block main %}
{{ count }}+
Suppliers
are supplying products to the EBMS warehouse.
Get the details of a specific supplier.
Top-Rated Suppliers
Here is a summary of the suppliers having all their product ratings above 3
| Supplier ID |
Supplier Name |
E-Mail Address |
Average Rating of all Products |
{% for row in top_rated %}
| {{ row['supplierID'] }} |
{{ row['name'] }} |
{{ row['email'] }} |
{{ row['avg_rating'] }} |
{% endfor %}
Inactive Suppliers
Here's a list of suppliers who haven't supplied any products to ebms in the past term
| Supplier ID |
Supplier Name |
E-Mail Address |
{% for row in inactive %}
| {{ row['supplierID'] }} |
{{ row['name'] }} |
{{ row['email'] }} |
{% endfor %}
Supplier Activity and Demographics
Here is a detailed summary of demographics of the supplier activity on ebms
| Country |
State |
Number of Suppliers |
Average Earning per Order |
Total Earning |
{% for row in demographics %}
{% if row['country'] != None and row['state'] != None %}
| {{ row['country'] }} |
{{ row['state'] }} |
{{ row['supplier_count'] }} |
{{ row['avg_earned'] }} |
{{ row['total_earned'] }} |
{% endif %}
{% endfor %}
| Country |
Number of Suppliers |
Average Earning per Order |
Total Earning |
{% for row in demographics %}
{% if row['country'] != None and row['state'] == None %}
| {{ row['country'] }} |
{{ row['supplier_count'] }} |
{{ row['avg_earned'] }} |
{{ row['total_earned'] }} |
{% endif %}
{% endfor %}
| Total Number of Active Suppliers |
Average Earning per Order |
Total Global Earning |
{% for row in demographics %}
{% if row['country'] == None and row['state'] == None %}
| {{ row['supplier_count'] }} |
{{ row['avg_earned'] }} |
{{ row['total_earned'] }} |
{% endif %}
{% endfor %}
{% endblock %}