{% extends "base.html" %} {% block title %}Movimentações - {{ produto.nome }}{% endblock %} {% block content %}
Produto: {{ produto.nome }}
{% if produto.codigo_produto %} Código: {{ produto.codigo_produto }} {% endif %}| Data/Hora | Tipo | Origem | Documento | Quantidade | Valor Unit. | Estoque Antes | Estoque Depois | Observações |
|---|---|---|---|---|---|---|---|---|
|
{{ mov.data_movimento.strftime('%d/%m/%Y') if mov.data_movimento else 'N/A' }} {{ mov.data_movimento.strftime('%H:%M') if mov.data_movimento else '' }} |
{% if mov.tipo == 'entrada' %} Entrada {% elif mov.tipo == 'saida' %} Saída {% elif mov.tipo == 'ajuste' %} Ajuste {% else %} {{ mov.tipo }} {% endif %} |
{{ mov.origem|replace('_', ' ')|title }}
{% if mov.referencia %}
Ref: {{ mov.referencia }} {% endif %} |
{% if mov.documento %}
{{ mov.documento }}
{% else %}
-
{% endif %}
|
{{ "%+.2f"|format(mov.quantidade) }} | {% if mov.valor_unitario %} R$ {{ "%.2f"|format(mov.valor_unitario) }} {% else %} - {% endif %} | {{ "%.2f"|format(mov.estoque_anterior or 0) }} | {{ "%.2f"|format(mov.estoque_resultante or 0) }} | {% if mov.observacoes %} {{ mov.observacoes }} {% else %} - {% endif %} |