{% extends 'base.html.twig' %} {% set titleName = "Dolibarr Orders History" %} {% block title %} POWER DATA | {{titleName}} {% endblock %} {% block page %}{{titleName}}{% endblock %} {% block breadcrumb %} {% if titleName != "Home" %} {{titleName}} {% endif %} {% endblock %} {% block content %}
{% for message in app.flashes('success') %} {% endfor %} {% for message in app.flashes('error') %} {% endfor %}
{% set lotTypeDrop = constant('App\\Entity\\Dolibarr\\DolibarrJumiaOrder::TYPE_DROPSHIPPING') %} {% set lotTypeWarehouse = constant('App\\Entity\\Dolibarr\\DolibarrJumiaOrder::TYPE_WAREHOUSE') %} {% set lotTypeWarehouseGlobal = constant('App\\Entity\\Dolibarr\\DolibarrJumiaOrder::TYPE_WAREHOUSE_GLOBAL') %} {%for order in orders %} {% if is_granted('ROLE_ADMIN') or ( not is_granted('ROLE_ADMIN') and order.type == lotTypeDrop ) %} {% endif %} {% endfor %}
Id Shipper LOT ° Created At Created By Selected Created Action
{{ order.id }} {{ order.shipper }} {{ order.numberOfLot }} {{ order.createdAt is not null ? order.createdAt|date('d/m/Y H:i') }} {{ order.createdBy is not null ? order.createdBy.firstname~' '~order.createdBy.lastname }} {{ order.listOfOrderIdSelected is not null ? order.listOfOrderIdSelected|length : 0 }} {{ order.listOfOrderIdCreated is not null ? order.listOfOrderIdCreated|length : 0 }} {% if order.readyToShipUpdatedList|length != order.listOfOrderIdCreated|length and order.type == lotTypeDrop %} 0 and order.readyToShipNotUpdatedList|length == 0 %} {% set hide = 'd-none' %} {% endif %} href="{{ path('app_dolibarr_orders_lot_status_ready_to_Sheep',{ 'id':order.id }) }}" onclick="return confirm('Are you sure you wish to Change status To ready to sheep !?\n Please Confirm OR Cancel.');" class="btn {{ hide }} {{ order.readyToShipNotUpdatedList|length > 0 or order.readyToShipUpdatedList|length > 0 ? 'btn-success' : 'btn-outline-success' }} btn-sm confirmation" data-id="{{ order.id }}" data-numberOfLot="{{ order.numberOfLot }}" > Status {% endif %} View
{% endblock %} {% block script %} {% endblock %}