{% extends "pos/base.html" %} {% load static %} {% block title %}Order {{ order.tiktok_order_id }}{% endblock %} {% block heading %}TikTok Order Detail{% endblock %} {% block content %}
Back to Dashboard {% if order.pos_status == 'STOCK_HOLD' %}
{% csrf_token %}
{% endif %}
Order Information
{% if order.pos_invoice_no %} {% endif %} {% if order.pos_return_invoice_no %} {% endif %} {% if order.stock_hold_reason %} {% endif %}
TikTok Order ID{{ order.tiktok_order_id }}
Shop{{ order.shop.shop_name }}
Buyer{{ order.buyer_name|default:"—" }}
Phone{{ order.buyer_phone|default:"—" }}
Order Date{{ order.order_date|date:"d-M-Y H:i" }}
TikTok Status {{ order.tiktok_status }}
POS Status {% if order.pos_status == 'POSTED' %} POSTED {% elif order.pos_status == 'STOCK_HOLD' %} STOCK HOLD {% elif order.pos_status == 'REVERSED' %} REVERSED {% else %} {{ order.pos_status }} {% endif %}
POS Invoice#{{ order.pos_invoice_no }}
Return Invoice#{{ order.pos_return_invoice_no }}
Hold Reason {{ order.stock_hold_reason }}
Amount Breakdown
Original Amount {{ order.original_amount|floatformat:2 }}
(-) Discount {{ order.discount_amount|floatformat:2 }}
(-) Shipping Fee {{ order.shipping_fee|floatformat:2 }}
(-) Platform Fee {{ order.platform_fee|floatformat:2 }}
Net Earned {{ order.net_amount|floatformat:2 }}
Order Items
{% for item in items %} {% empty %} {% endfor %}
TikTok SKU Product Name Matched Product Qty Sale Price Cost Price Profit Stock
{{ item.sku_id }} {{ item.product_name }} {% if item.matched_product %} {{ item.matched_product.name }} {% else %} Not Found {% endif %} {{ item.quantity }} {{ item.sale_price|floatformat:2 }} {{ item.cost_price|floatformat:2 }} {{ item.profit|floatformat:2 }} {% if item.stock_available %} OK {% else %} HOLD {% if item.stock_issue_note %}
{{ item.stock_issue_note }} {% endif %} {% endif %}
No items
{% if logs %}
Recent Webhook Events
{% for log in logs %} {% endfor %}
EventStatusErrorTime
{{ log.event_type }} {% if log.processed %} OK {% else %} Failed {% endif %} {{ log.error|default:"—" }} {{ log.received_at|date:"d-M-y H:i:s" }}
{% endif %} {% endblock %}