{% for order in preparation_orders %}
| {% translate "Produit" %} |
{% translate "Quantité" %} |
{% for item in order.preparationorderitem_set.all %}
|
{{ item.product.name }}
|
{{ item.quantity }} |
{% empty %}
| {% translate "Aucun article." %} |
{% endfor %}
{% empty %}
{% translate "Aucun bon de préparation." %}
{% endfor %}
{% if can_create_production_order %}
{% endif %}
{% for order in production_orders %}
| {% translate "Entrepôt" %} |
{% translate "Quantité" %} |
{% translate "Bon de prép." %} |
| {{ order.warehouse.name }} |
{{ order.quantity }} |
{% if order.preparation_order %}
#{{ order.preparation_order.order_number }}
{% else %}
-
{% endif %}
|
{% empty %}
{% translate "Aucun bon de confection." %}
{% endfor %}
{% if can_create_movement %}
{% endif %}
{% for batch in batches_with_movements %}
| {% translate "Produit" %} |
{% translate "Quantité" %} |
{% translate "Source" %} |
{% translate "Destination" %} |
{% for movement in batch.movements.all %}
|
{{ movement.product.name }}
|
{% if movement.source_location and movement.destination_location %}
{{ movement.quantity }}
{% elif movement.destination_location %}
+{{ movement.quantity }}
{% else %}
-{{ movement.quantity }}
{% endif %}
|
{% if movement.source_location %}
{{ movement.source_location.name }}
{% else %}—{% endif %}
|
{% if movement.destination_location %}
{{ movement.destination_location.name }}
{% else %}—{% endif %}
|
{% empty %}
| {% translate "Aucun article." %} |
{% endfor %}
{% empty %}
{% translate "Aucun mouvement de stock." %}
{% endfor %}
{% if can_create_inventory %}
{% endif %}
{% for inventory in inventories %}
| {% translate "Responsable" %} |
{% translate "Articles" %} |
| {{ inventory.performed_by|default:"-" }} |
{{ inventory.total_items }} |
{% empty %}
{% translate "Aucun inventaire enregistré." %}
{% endfor %}