{% extends "base.html" %} {% load static erp_tags %} {% block title %}Receive {{ po.po_number }}{% endblock %} {% block chat_context %} {% endblock %} {% block content %}

Purchase order

Receive {{ po.po_number }}

{% if po.supplier %}{{ po.supplier }} · {% endif %}{{ po.get_status_display }} · {{ po.get_receiving_status_display }}

Goods received now

{% if can_receive %}
{% csrf_token %}{% once_field %}
{% for row in rows %} {% endfor %}
SKU Item Ordered Received Still to come Received now
{{ row.line.our_sku|default:row.line.variant.sku }} {{ row.line.item_name }} {{ row.line.quantity_ordered|floatformat:"-3" }} {{ row.line.quantity_received|floatformat:"-3" }} {{ row.remaining|floatformat:"-3" }}
{{ form.warehouse|add_class:"form-control form-control-sm" }}
Blank: the purchase order's warehouse, else the company's default.
{{ form.carrier|add_class:"form-control form-control-sm" }}
{{ form.tracking_number|add_class:"form-control form-control-sm" }}
{{ form.notes|add_class:"form-control form-control-sm" }}
{{ form.close_when_complete|add_class:"form-check-input" }}
{% elif rows %}

{{ po.po_number }} is {{ po.get_status_display|lower }}; nothing can be received against it.

{% else %}

{{ po.po_number }} has no lines to receive.

{% endif %}

Receipts

{% if receipts %}
    {% for receipt in receipts %}
  • {{ receipt.receipt_number }} · {{ receipt.received_at|date:"Y-m-d" }} · {{ receipt.get_status_display }} {% if receipt.warehouse %}· {{ receipt.warehouse.name }}{% endif %}
      {% for line in receipt.lines.all %}
    • {{ line.po_line_item.our_sku|default:line.po_line_item.item_name }}: {{ line.quantity_received|floatformat:"-3" }}
    • {% endfor %}
  • {% endfor %}
{% else %}

Nothing received yet.

{% endif %}
{% endblock %}