{% extends "admin_base.html" %} {% import "macros/financials.html" as financials %} {% block page_title %}Order {{ order.order_number }}{% endblock %} {% block extra_head %} {% endblock %} {% block admin_content %}
Back to orders

Order details

{{ order.order_number }}

Placed {{ order.created_at | date_in_tz(timezone=settings.timezone, format='%d %b, %H:%M') }} {{ order.sales_channel_label | default(value="Online store") }}
{% set sc = status_control %} Fulfillment workflow

Customer

Name
{{ customer.name }}
Email
{{ customer.email }}
Phone
{{ customer.phone | default(value="N/A") }}
{% if order.delivery_date %}

Delivery

{% if shipping_address %}
Address
{{ shipping_address.full_address }}
{% endif %}
Scheduled date
{{ order.delivery_date | date_in_tz(timezone=settings.timezone, format='%d %b, %Y') }}
{% if order.delivery_slot_name %}
Time slot
{{ order.delivery_slot_name }}
{% endif %} {% if order.delivery_instructions %}
Delivery instructions
{{ order.delivery_instructions }}
{% endif %}
{% endif %}

Order financials

{{ financials::financial_summary(order=order, currency_symbol=settings.currency_symbol | default(value='₹')) }}
Payment status
{{ order.payment_status }} {% if order.payment_status != 'paid' %}{% set_global show_refresh = false %}{% for p in payments %}{% if p.status == 'pending' and p.payment_method != 'cod' and p.payment_method != 'cash' and p.payment_method != 'credit' %}{% set_global show_refresh = true %}{% endif %}{% endfor %}{% if show_refresh %}{% endif %}{% endif %}
{% set_global has_rejected = false %}{% set_global refund_total = 0 %} {% for item in line_items %}{% if item.status == 'rejected' %}{% set_global has_rejected = true %}{% set_global refund_total = refund_total + item.refund_amount %}{% endif %}{% endfor %}

Fulfillment

Order items

{{ line_items | length }} lines
{% for group in vendor_item_groups %}
{% if vendor_plugin_installed %}
{% if group.vendor %}{{ group.vendor.store_name }}{% else %}{{ group.label | default(value="Direct / platform fulfillment") }}{% endif %}{{ group.items | length }} line{% if group.items | length != 1 %}s{% endif %}
{% endif %}
{% for item in group.items %} {% endfor %}
ItemQtyTotalStatusActions
{% if item.image_url %}
{% if item.dietary_type == "veg" %}{% elif item.dietary_type == "non_veg" %}{% endif %}
{% endif %}

{{ item.product_name }}

{% if item.variant_label %}

{{ item.variant_label }}

{% endif %}
{{ item.transaction_type }}{{ settings.currency_symbol | default(value='₹') }}{{ item.unit_price | price }}
{% if item.sku %}

SKU: {{ item.sku }}

{% endif %}
{{ item.quantity }} {{ settings.currency_symbol | default(value='₹') }}{{ item.total | price }} {{ item.status }} {% if item.status == 'pending' %}
{% else %}—{% endif %}
{% endfor %} {% if (vendor_item_groups is not defined or vendor_item_groups | length == 0) and (line_items is not defined or line_items | length == 0) %}

No line items recorded for this order.

{% endif %}
{% if has_rejected %}

Pending refunds

Rejected items need financial adjustment.

Total refund amount{{ settings.currency_symbol | default(value='₹') }}{{ refund_total | price }}
{% if order.payment_status != 'paid' %}

This order is not marked as paid. Adjusting will only reduce the order total.

{% endif %}
{% if order.payment_status == 'paid' %}{% if wallet_plugin_installed %}{% endif %}{% else %}{% endif %}
{% endif %} {% if refunds %}

Refund and adjustment history

{% for refund in refunds %}{% endfor %}
DateMethodStatusAmount
{{ refund.created_at | date_in_tz(timezone=settings.timezone, format='%d %b %Y, %H:%M') }}{{ refund.method }}{{ refund.status }}{% if refund.restock_requested %} · stock return requested{% endif %}{{ settings.currency_symbol | default(value='₹') }}{{ refund.amount | price }}
{% endif %}

Transactions

Payment history

{% if payments %}
{% for payment in payments %}{% endfor %}
DateMethodStatusAmount and actions
{{ payment.created_at | date_in_tz(timezone=settings.timezone, format='%d %b %H:%M') }}{{ payment.payment_method }}{{ payment.status }}{% if payment.status == 'pending' and payment.payment_method != 'cod' and payment.payment_method != 'cash' and payment.payment_method != 'credit' %}{% endif %}{{ settings.currency_symbol | default(value='₹') }}{{ payment.amount | price }}{% if payment.status == 'pending' %}{% endif %}
{% else %}

No payments recorded yet.

{% endif %}

Internal

Order notes

{% if order.notes %}
{{ order.notes }}
{% else %}

No notes added.

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