{% extends 'base.html.twig' %}
{% set titleName = "Orders" %}
{% block title %} POWER DATA | {{titleName}} {% endblock %}
{% block page %}{{titleName}}{% endblock %}
{% block breadcrumb %} {% if titleName != "Home" %} {{titleName}} {% endif %} {% endblock %}
{% block css %}
{% endblock %}
{% block content %}
DataTable with default features
{% if is_granted('ROLE_ADMIN') or is_granted('ROLE_ORDER_MANAGER') %}
{% if clientDolibarrName is not null %}
{% endif %}
{% endif %}
{% for order in orders %}
ID
Dolibar ID
Client
Created By
Created At
Status
Shipper
Canal
Action
{% endfor %}
{{ order.id }}
{{ order.dolibarId }}
{{ order.clientDolibarrName }}
{{ order.createdBy.firstName }} {{ order.createdBy.lastName }}
{{ order.createdAt|date("d/m/Y") }}
{{ order.shipper.name }}
{{ order.canal.name is defined ? order.canal.name : ''}}
View
{% if (is_granted('ROLE_ADMIN') or is_granted('ROLE_ORDER_MANAGER') or is_granted('ROLE_ORDER_DELETE')) and order.status == 1 %}
{# #}
Delete
{% endif %}
{% if is_granted('ROLE_ADMIN') %}
Delete Forced
{% endif %}
ID
Dolibar ID
Client
Created By
Created At
Status
Shipper
Canal
Action