{% extends 'layouts/app.html.twig' %} {% block title %}Zamówienie {{ order.externalReference ?: order.externalId }} | Luminous{% endblock %} {% block app_content %} {% include 'partials/_flash_messages.html.twig' %}
{{ order.manual ? 'Zamówienie operatora' : 'Zamówienie' }} / #{{ order.id }}

{{ order.externalReference ?: order.externalId }}

{{ order.manual ? 'Operator' : (order.platform ? order.platform.name : 'Nieznana platforma') }} · {{ order.sourceCreatedAt ? order.sourceCreatedAt|date('d.m.Y H:i') : 'brak daty' }} · {{ (order.customerFirstName ~ ' ' ~ order.customerLastName)|trim ?: 'brak klienta' }}

{% if not order.manual %}Status źródła: {{ order.sourceStatusLabel ?: order.sourceStatusCode ?: '—' }}{% endif %} Wewnętrzny: {{ order.internalStatusCode ?: 'nieustalony' }} Dostawa: {{ order.shippingMethodName ?: order.deliveryType }} Pozycji: {{ order_view.summary.items }} {% if order.manual and order.updatedBy %}Operator: {{ order.updatedBy.displayName }}{% endif %}
{% if order.manual and permissions.edit_manual and order.internalStatusCode != 'cancelled' %} editEdytuj {% endif %} {% if order.manual and permissions.activate_manual %}
{% if order.internalStatusCode in ['draft', 'needs_attention'] %}
{% if manual_readiness and manual_readiness.warnings %} {% endif %}
{% endif %} {% endif %} {% if provider_dispatch_options and (order.canBeSentToProvider or duplicate_fulfillment) and permissions.fulfillment_dispatch %} {% elseif order.manual %} Aktywuj zamówienie przed realizacją {% endif %} {% if order.manual and permissions.cancel_manual and order.internalStatusCode != 'cancelled' %}
{% endif %} arrow_backLista zamówień
{% if order.manual and manual_readiness %} {% if manual_readiness.errors %}
error
{% endif %} {% if manual_readiness.warnings %}
warning
{% endif %} {% endif %}
{% include 'sales_order/tabs/_summary.html.twig' %} {% include 'sales_order/tabs/_products.html.twig' %} {% include 'sales_order/tabs/_delivery.html.twig' %} {% include 'sales_order/tabs/_fulfillments.html.twig' %} {% include 'sales_order/tabs/_shipments.html.twig' %} {% include 'sales_order/tabs/_history.html.twig' %} {% include 'sales_order/tabs/_source.html.twig' %} {% include 'sales_order/tabs/_logs.html.twig' %}
{% if provider_dispatch_options and (order.canBeSentToProvider or duplicate_fulfillment) and permissions.fulfillment_dispatch %}{% include 'sales_order/_fulfillment_modal.html.twig' %}{% endif %} {% endblock %}