{% if order_rows is empty %}
Brak zamówień

Żadne zamówienie nie spełnia aktualnych kryteriów.

{% else %}
{% for row in order_rows %} {% set order = row.order %} {% set preview_id = 'sales-order-preview-' ~ order.id %} {% endfor %}
Źródło Numer Data Klient Pozycje Mockupy Dostawa Status źródłowy Status wewnętrzny Mapowanie Realizacja Przesyłka Akcje
{{ order.manual ? 'Operator' : (order.platform ? order.platform.name : '—') }} {{ order.manual ? (order.manualSourceLabel ?: 'Zamówienie ręczne') : (order.sourceIntegration ? order.sourceIntegration.name : 'Brak integracji') }} {{ order.externalReference ?: order.externalId }} ID: {{ order.externalId }} {{ order.sourceCreatedAt ? order.sourceCreatedAt|date('d.m.Y H:i') : '—' }} {{ (order.customerFirstName ~ ' ' ~ order.customerLastName)|trim ?: '—' }} {{ order.customerEmail ?: 'Brak e-maila' }} {{ row.itemCount }}
{% for item_view in row.items|slice(0, 3) %} {% include 'sales_order/_mockup_thumbnail.html.twig' with { order: order, item: item_view.item, mockup: item_view.mockup, compact: true, allow_private: can_mockup_download } only %} {% endfor %} {% if row.itemCount > 3 %}+{{ row.itemCount - 3 }}{% endif %}
{% if row.missingMockupCount > 0 %}Brak: {{ row.missingMockupCount }}{% endif %}
{{ order.shippingMethodName ?: order.deliveryType }} {% if order.pickupPointCode %}{{ order.pickupPointCode }}{% endif %} {{ order.sourceStatusLabel ?: order.sourceStatusCode ?: '—' }} {{ order.internalStatusCode ?: 'Nieustalony' }} {% if row.mappingReady %} {{ row.mappedCount }}/{{ row.itemCount }} gotowe {% else %} {{ row.unresolvedCount + row.ambiguousCount }} wymaga uwagi {% endif %} {% if selected_provider and row.missingSkuCount > 0 %}Brak SKU: {{ row.missingSkuCount }}{% endif %} {% if row.missingArtworkCount > 0 %}Brak POD ART: {{ row.missingArtworkCount }}{% endif %} {% if row.fulfillmentCount > 0 %} {{ row.activeFulfillmentCount }} aktywne Łącznie: {{ row.fulfillmentCount }} {% else %} Nie utworzono {% endif %} {% if order.trackingNumber %}{{ order.trackingNumber }}{% else %}Brak{% endif %}
Szczegóły
{% endif %}