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

{{ t('stock_report') }}

{{ l('Current stock levels, valuation and reorder alerts across your catalogue', 'আপনার পণ্যের বর্তমান মজুদ, মজুদ মূল্যমান ও পুনঃঅর্ডারের তথ্য') }}

{{ l('Adjust Stock', 'মজুদ সমন্বয়') }} {{ l('Purchase Order', 'পারচেজ অর্ডার') }}
{{ l('Total Products', 'মোট পণ্য') }}
{{ total_products if total_products is defined else (products|length) }}
{{ l('Total Stock Value', 'মোট মজুদ মূল্য') }}
৳ {{ "%.2f"|format(total_stock_value or 0) }}
{{ l('Low Stock Items', 'কম মজুদ পণ্য') }}
{{ low_stock_count if low_stock_count is defined else 0 }}
{{ l('Out of Stock Items', 'স্টক শেষ পণ্য') }}
{{ out_of_stock_count if out_of_stock_count is defined else 0 }}
{{ l('Quick Filter:', 'দ্রুত ফিল্টার:') }}
0 {{ l('Items', 'টি পণ্য') }}
{{ l('Stock Detail', 'মজুদ বিবরণ') }}
{% for p in products %} {% endfor %}
{{ l('Product', 'পণ্য') }} {{ l('Category', 'বিভাগ') }} {{ l('Current Stock', 'বর্তমান মজুদ') }} {{ l('Buy Price', 'ক্রয় মূল্য') }} {{ l('Sell Price', 'বিক্রয় মূল্য') }} {{ l('Expiry Status', 'মেয়াদের অবস্থা') }} {{ l('Stock Value', 'মজুদ মূল্য') }} {{ l('Action', 'করণীয়') }}
{{ p.name }}
{{ p.product_code or '' }}
{{ p.category or "General" }} {% if (p.stock or 0) <= 0 %} 0 {{ p.unit or '' }} ({{ l('Out of Stock', 'স্টক শেষ') }}) {% elif (p.stock or 0) <= (p.reorder_level or 5) %} {{ "%.2f"|format(p.stock or 0) }} {{ p.unit or '' }} ({{ l('Low Stock', 'কম মজুদ') }}) {% else %} {{ "%.2f"|format(p.stock or 0) }} {{ p.unit or '' }} {% endif %} ৳ {{ "%.2f"|format(p.buy_price or 0) }} ৳ {{ "%.2f"|format(p.sell_price or 0) }} {% if p.expiry_date %} {% if p.days_until_expiry is not none and p.days_until_expiry < 0 %} Expired ({{ p.days_until_expiry|abs }}d ago) {% elif p.days_until_expiry is not none and p.days_until_expiry == 0 %} Expires Today {% elif p.days_until_expiry is not none and p.days_until_expiry <= 30 %} {{ p.days_until_expiry }} days to expire {% else %} {{ p.expiry_date.strftime('%Y-%m-%d') }} {% endif %} {% else %} {% endif %} ৳ {{ "%.2f"|format((p.stock or 0) * (p.buy_price or 0)) }}
{{ l('No products found matching filter.', 'ফিল্টারের সাথে মেলে এমন কোনো পণ্য পাওয়া যায়নি।') }}
{% endblock %}