{% extends 'base.html.twig' %} {% block title %}Order Details{% endblock %} {% block body %} {% set subName = 'szczegóły'|upper %}
{% set name = 'Zlecenia'|upper %} {{ include('nav/top_menu/top_menu.html.twig') }}
Status
{{ status.name }}
Data wystawienia
{{ order.createdAt|date("Y-m-d") }}
Klient
{{ client.company.fullName }}
Osoba kontaktowa
{% set contactPersonName = "#{contact.firstName} #{contact.lastName}" %} {% if contact.firstName != '' and contact.lastName != '' and contact.email != '' and contact.phone != '' %} {{ contactPersonName }}, {{ contact.email }}, {{ contact.phone }} {% elseif contact.firstName != '' and contact.lastName != '' and contact.email != '' %} {{ contactPersonName }}, {{ contact.email }} {% elseif contact.firstName != '' and contact.lastName != '' and contact.phone != '' %} {{ contactPersonName }}, {{ contact.phone }} {% elseif contact.firstName != '' and contact.lastName != '' %} {{ contactPersonName }} {% else %} {{ 'Brak informacji' }} {% endif %}
Załadunek
{% if (loading is not empty) %} {% for singleLoading in loading %} {% if (loop.last) %} {{ singleLoading.getComments }} {% if singleLoading.getComments != '' %} , {% endif %} {% if singleLoading.getBeforeTime == false %} {% if singleLoading.getTimeFrom != '' and singleLoading.getTimeTo != '' %} W dniu {{ singleLoading.getDate()|date('Y-m-d') }} / {{ singleLoading.getTimeFrom }} - {{ singleLoading.getTimeTo }}, {% else %} W dniu {{ singleLoading.getDate()|date('Y-m-d') }}, {% endif %} {% else %} {% if singleLoading.getTimeFrom != '' and singleLoading.getTimeTo != '' %} Do {{ singleLoading.getDate()|date('Y-m-d') }} / {{ singleLoading.getTimeFrom }} - {{ singleLoading.getTimeTo }}, {% else %} Do {{ singleLoading.getDate()|date('Y-m-d') }}, {% endif %} {% endif %} {{ singleLoading.description }} {{ singleLoading.street }} {{ singleLoading.buildNumber }}, {{ singleLoading.postalCode }} {{ singleLoading.city }} {{ singleLoading.country.name }} {% endif %} {% endfor %} {% endif %}
Rozładunek
{% if (unloading is not empty) %} {% for index, singleUnloading in unloading %} {% if (loop.last) %} {{ singleUnloading.getComments }} {% if singleUnloading.getComments != '' %} , {% endif %} {% if singleUnloading.getBeforeTime == false %} {% if singleUnloading.getTimeFrom != '' and singleUnloading.getTimeTo != '' %} W dniu {{ singleUnloading.getDate()|date('Y-m-d') }} / {{ singleUnloading.getTimeFrom }} - {{ singleUnloading.getTimeTo }}, {% else %} W dniu {{ singleUnloading.getDate()|date('Y-m-d') }}, {% endif %} {% else %} {% if singleUnloading.getTimeFrom != '' and singleUnloading.getTimeTo != '' %} Do {{ singleUnloading.getDate()|date('Y-m-d') }} / {{ singleUnloading.getTimeFrom }} - {{ singleUnloading.getTimeTo }}, {% else %} Do {{ singleUnloading.getDate()|date('Y-m-d') }}, {% endif %} {% endif %} {{ singleUnloading.description }} {{ singleUnloading.street }} {{ singleUnloading.buildNumber }}, {{ singleUnloading.postalCode }} {{ singleUnloading.city }} {{ singleUnloading.country.name }} {% endif %} {% endfor %} {% endif %}
Wartość zlecenia
{{ order.priceNet }} {{ order.currencyOrder.isoCode }}
Marża
{{ order.margin }} {{ order.currencyOrder.isoCode }}
Forma
{% for form in forms %} {% if loop.index == order.form %} {{ form }} {% endif %} {% endfor %}
Wartość podzleceń (wal. zl.)
{{ sumSuborders }} {{ order.currencyOrder.isoCode }}
Punkty za zlecenie
{% if (clientContactPersonsBenefitByOrder is not empty) %} {% set sumBenefitPoints = 0 %} {% for clientContactPersonBenefitByOrder in clientContactPersonsBenefitByOrder %} {% set sumBenefitPoints = sumBenefitPoints + clientContactPersonBenefitByOrder.pointsGross %} {% endfor %}
{% for clientContactPersonBenefitByOrder in clientContactPersonsBenefitByOrder %} {% if clientContactPersonBenefitByOrder.statusId == 2 %} {{ sumBenefitPoints }} {% else %} {{ 'Brak informacji' }} {% endif %} {% endfor %}
{% else %} {% set benefitPoints = 'Brak informacji' %}
{{ benefitPoints }}
{% endif %}
Klasyfikacja
{% if order.classification == null %} {% set classification = 'Brak informacji' %} {% else %} {% set classification = order.classification %} {% endif %} {{ classification }}
Faktura VAT
{% if order.isCreatedInvoice == null %} {% set isCreatedInvoice = 'Brak informacji' %} {% else %} {% set isCreatedInvoice = 'TAK' %} {% endif %} {{ isCreatedInvoice }}
Numer zlecenia Klienta
{% if order.clientIdNumber == null %} {% set clientIdNumber = 'Brak informacji' %} {% else %} {% set clientIdNumber = order.clientIdNumber %} {% endif %} {{ clientIdNumber }}
Uwagi
{{ order.comments }}
Opis towaru
{{ order.description }}
Waga
{{ order.weight }} KG
Dane kierowcy
{% if order.driverContact == null %} {% set driverContact = 'Brak informacji' %} {% else %} {% set driverContact = order.driverContact %} {% endif %} {{ driverContact }}
Spedytor/spedytorzy
{# {{ order.user.firstName }} {{ order.user.lastName }}#}
{% endblock %}