{% extends "layouts/base.html" %} {% load fm_tags %} {% block title %}{{ item.name }}{% endblock %} {% block breadcrumb %}
  • Stocks
  • {{ item.code }}
  • {% endblock %} {% block content %} {{ item.code }}{% if item.current_qty <= 0 %}Rupture{% elif item.is_below_minimum %}Sous le seuil{% else %}Disponible{% endif %} {% if can_move %}{% endif %}
    {% if movements %}
    {% for m in movements %}{% endfor %}
    DateTypeQuantitéMotif
    {{ m.occurred_at|date:"d/m/Y H:i" }} {% if m.movement_type == "ENTRY" or m.movement_type == "TRANSFER_IN" %}{{ m.get_movement_type_display }}{% elif m.movement_type == "ADJUSTMENT" %}{{ m.get_movement_type_display }}{% else %}{{ m.get_movement_type_display }}{% endif %} {% if m.quantity > 0 %}+{% endif %}{{ m.quantity }} {{ m.reason|default:"—" }}{% if m.reference %}
    {{ m.reference }}
    {% endif %}
    {% else %}{% endif %}
    {% if can_move %}
    {% csrf_token %}
    {% endif %} {% endblock %}