{% extends "base.html" %} {% load static %} {% load i18n %} {% load l10n %} {% block head %} {% endblock %} {% block content %}

{{ location.warehouse.name }} - {{ location.name }}

{% if is_stock_manager %} {% translate "Ajouter un produit" %} {% endif %} {% if can_administer %} {% translate "Modifier" %} {% endif %} {% translate "Voir l'entrepôt" %} {% translate "Retour" %}

{% translate "Code" %}

{{ location.code }}

{% translate "Entrepôt" %}

{{ location.warehouse.name }}

{% translate "Gestionnaire" %}

{{ location.warehouse.manager }}

{% if location.qr_code %}
{% translate "QR Code" %}
QR Code {{ location.code }}
{% endif %}
{% if location.description %}
{% translate "Description" %}

{{ location.description }}

{% endif %}
{% translate "Filtres" %}
{% for category, products in products_by_category.items %}
{{ category }} {{ products|length }}
{% for product in products %} {% endfor %}
{% translate "Code" %} {% translate "Produit" %} {% translate "Stock" %} {% translate "Seuil" %} {% translate "Statut" %}
{{ product.code }} {{ product.name }} {{ product.stock }} {{ product.threshold }} {% if product.is_below_threshold %} {% translate "Alerte" %} {% else %} {% translate "OK" %} {% endif %}
{% empty %}

{% translate "Aucun produit dans cet emplacement." %}

{% endfor %}
{% translate "Aucun produit ne correspond aux filtres." %}
{% for movement in recent_movements %} {% empty %} {% endfor %}
{% translate "Date" %} {% translate "Produit" %} {% translate "Type" %} {% translate "Origine" %} {% translate "Destination" %} {% translate "Quantité" %} {% translate "Raison" %}
{{ movement.date|date:"d/m/Y H:i" }} {{ movement.product.name }} {% if movement.source_location and movement.destination_location %} {{ movement.movement_type }} {% elif movement.destination_location %} {{ movement.movement_type }} {% else %} {{ movement.movement_type }} {% endif %} {% if movement.source_location %} {{ movement.source_location.warehouse.name }} - {{ movement.source_location.name }} {% else %} - {% endif %} {% if movement.destination_location %} {{ movement.destination_location.warehouse.name }} - {{ movement.destination_location.name }} {% else %} - {% endif %} {% if movement.source_location and movement.destination_location %} {{ movement.quantity }} {% elif movement.destination_location %} +{{ movement.quantity }} {% else %} {% if movement.quantity >= 0 %}-{% endif %}{{ movement.quantity }} {% endif %} {{ movement.reason|default:"-" }}
{% translate "Aucun mouvement enregistré." %}
{% if can_administer %} {% endif %} {% endblock content %}