{% extends "base.html" %} {% block title %}{{ t('Batch') }} {{ lot.number }}{% endblock %} {% block content %}
{{ t('Batches & Expiry') }}

{{ t('Batch') }} {{ lot.number }}

{{ lot.code or '' }} {{ nm(lot) }}
{{ t('Print Labels') }}
{{ t('Expiry date') }}
{{ lot.expiry_date or '—' }}{% if lot.expiry_date and lot.expiry_date < today %} {{ t('Expired') }}{% endif %}
{{ t('In stock') }}
{% for s in stock %}{{ s.code }}: {{ '%g' % s.qty }} {{ lot.uom or '' }}{% if not loop.last %}, {% endif %}{% else %}0{% endfor %}
{{ t('Created') }}
{{ (lot.created_at or '')[:10] }}
{% if customers %}

{{ t('Customers who received this batch') }}

{{ t('For a product recall') }}
{% for c in customers %}{% endfor %}
{{ c.name }}{{ '%g' % c.qty }} {{ lot.uom or '' }}
{% endif %}

{{ t('Movements') }}

{% for m in moves %} {% else %}{% endfor %}
{{ t('Date') }}{{ t('Document') }}{{ t('Type') }}{{ t('Partner') }}{{ t('Warehouse') }}{{ t('Quantity') }}
{{ m.date }}{{ m.number }}{{ t(kinds.get(m.kind, m.kind)) }} {{ nm({'name_en': m.pname_en, 'name_ar': m.pname_ar}) if m.pname_en else '' }}{{ m.wcode }}{{ '%+g' % m.qty }}
{{ t('Nothing yet.') }}
{% endblock %}