{% extends "base.html" %} {% import "macros/empty_state.html" as empty %} {% block extra_head %} {% endblock %} {% block content %}
{% if error %}

Something went wrong

{{ error }}

Back to home
{% elif vendor %}

Orders to pack

Accept items, pack them, then tap Ready to pickup. Status is tracked by the vendor_assignment FSM.

Set your prices first

These products are on open orders without a store price. Set each once — then your order list unlocks.

{% for product in products_needing_price %}
{% if product.image_url %} {% else %} {% endif %} {% if product.dietary_type == "veg" %}{% elif product.dietary_type == "non_veg" %}{% endif %}

{{ product.product_title }}

In {{ product.order_count }} open order line{% if product.order_count != 1 %}s{% endif %} {% if product.total_quantity %} · qty {{ product.total_quantity }}{% endif %}

{% endfor %}
{% if products_needing_price | length > 0 %}
{% endif %}
{% if assignments_ongoing | length > 0 %} {% set_global current_order = "" %} {% for assignment in assignments_ongoing %} {% if assignment.order_number != current_order %} {% if current_order != "" %}
{% endif %}

Order #{{ assignment.order_number }}

{{ assignment.order_date | date_in_tz(timezone=settings.timezone) }}
{% set_global current_order = assignment.order_number %} {% endif %}
{{ assignment.product_title }} Qty: {{ assignment.quantity }} {% if assignment.display_rate %} Your rate: {{ currency_symbol | default(value='₹') }}{{ assignment.display_rate }} {% elif assignment.vendor_unit_price %} Your rate: {{ currency_symbol | default(value='₹') }}{{ assignment.vendor_unit_price }} {% else %} {% endif %}
{% if assignment.status == 'pending' %}
{% else %} {{ assignment.status }} {% endif %}
{% if loop.last %}
{% endif %} {% endfor %} {% else %} {{ empty::empty_state(icon="fas fa-inbox", title="No orders waiting", description="Nothing to pack right now. New orders will show up here.") }} {% endif %}
{% endif %}

Order #{{ assignment.order_number }}

{{ assignment.order_date | date_in_tz(timezone=settings.timezone) }}
Ready to pickup
{% set_global current_order_c = assignment.order_number %} {% endif %}
{{ assignment.product_title }} Qty: {{ assignment.quantity }} {% if assignment.display_rate %} Your rate: {{ currency_symbol | default(value='₹') }}{{ assignment.display_rate }} {% elif assignment.vendor_unit_price %} Your rate: {{ currency_symbol | default(value='₹') }}{{ assignment.vendor_unit_price }} {% endif %}
{{ assignment.status }}
{% if loop.last %}
{% endif %} {% endfor %} {% else %} {{ empty::empty_state(icon="fas fa-check-circle", title="No completed orders yet", description="Orders appear here after you mark them ready to pickup.") }} {% endif %} {% else %}

Vendor access needed

Ask the store to set you up as a vendor.

{% endif %} {% endblock %} {% block scripts %} {% endblock %}