{% extends 'base.html' %} {% block title %}Dashboard - Manufacturing App{% endblock %} {% block content %}

Dashboard

Daily Production
{{ daily_production.total_quantity|default:"0" }}
{{ daily_production.total_orders|default:"0" }} orders
Daily Sales
Rp {{ daily_sales.total_amount|default:"0"|floatformat:0 }}
{{ daily_sales.total_orders|default:"0" }} orders
Daily Purchases
Rp {{ daily_purchases.total_amount|default:"0"|floatformat:0 }}
{{ daily_purchases.total_orders|default:"0" }} orders
Monthly Profit
Rp {{ monthly_profit|default:"0"|floatformat:0 }}
This month
Production Overview
Inventory Status
Recent Manufacturing Orders
{% if recent_manufacturing %}
{% for order in recent_manufacturing %} {% endfor %}
Order Product Quantity Date
{{ order.order_number }} {{ order.product.name }} {{ order.quantity }} {{ order.date }}
{% else %}

No recent manufacturing orders.

{% endif %}
Recent Inventory Movements
{% if recent_inventory_movements %}
{% for movement in recent_inventory_movements %} {% endfor %}
Product Type Quantity Date
{{ movement.product.name }} {{ movement.get_movement_type_display }} {{ movement.quantity }} {{ movement.date }}
{% else %}

No recent inventory movements.

{% endif %}
Low Stock Alerts
{% if low_stock_products %}
{% for product in low_stock_products %} {% endfor %}
Product Current Stock Min Level Status
{{ product.name }} {{ product.current_stock }} {{ product.min_stock_level }} Low Stock
{% else %}

All products have sufficient stock.

{% endif %}
Weekly Summary

{{ weekly_production.total_quantity|default:"0" }}

Production

Rp {{ weekly_sales.total_amount|default:"0"|floatformat:0 }}

Sales

Monthly Summary

{{ monthly_production.total_quantity|default:"0" }}

Production

Rp {{ monthly_sales.total_amount|default:"0"|floatformat:0 }}

Sales

{% endblock %} {% block extra_js %} {% endblock %}