pg_accumulator
Демонстрація розширення — складський облік
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% for category, message in messages %}
{{ message }}
{% endfor %}
{% endif %}
{% endwith %}
Скасувати документ
Запит залишку
Поточні залишки (balance_cache)
{% if balances %}
| Склад | Товар | Кількість | Сума |
{% for b in balances %}
| {{ b.warehouse }} |
{{ b.product }} |
{{ b.quantity }} |
{{ b.amount }} |
{% endfor %}
{% else %}
Немає даних. Запишіть перший рух вище.
{% endif %}
Останні рухи
{% if movements %}
| Документ | Дата | Склад | Товар | Кількість | Сума | Записано |
{% for m in movements %}
| {{ m.recorder }} |
{{ m.period.strftime('%Y-%m-%d') if m.period else '' }} |
{{ m.warehouse }} |
{{ m.product }} |
{{ m.quantity }}
|
{{ m.amount }}
|
{{ m.recorded_at.strftime('%H:%M:%S') if m.recorded_at else '' }} |
{% endfor %}
{% else %}
Немає рухів.
{% endif %}