{% extends 'base.html.twig' %} {% set titleName = "Inventory Details " %} {% block title %} POWER DATA | Inventory : {{ inventory.number }} {% endblock %} {% block page %} {{ inventory.number }} {% endblock %} {% block breadcrumb %} {% if titleName != "Home" %} {{ titleName }} / {{ inventory.number }} {% endif %} {% endblock %} {% block css %} {% endblock %} {% block content %}
{% for message in app.flashes('success') %} {% endfor %} {% for message in app.flashes('error') %} {% endfor %} {% for message in app.flashes('continue') %} {% endfor %}

{{ inventory.number }} Date: {{ inventory.createdAt|date }}

Created By
{{ inventory.createdBy.firstName }} {{ inventory.createdBy.lastName }}
Members {% for member in inventory.members %}
{{ member.firstName }} {{ member.lastName }}
{% endfor %}
Type
{{ inventory.arrayOfType[inventory.type] }}
Status
{{ inventory.arrayOfStatus[inventory.status] }}
{% if inventory.status == constant('App\\Entity\\Power\\Inventory::STATUS_DRAFT') and stepVerification is null %} {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_INVENTORY_MANAGER') %} {% if inventory.type == constant('App\\Entity\\Power\\Inventory::TYPE_GLOBAL') %} Validate {% elseif inventory.type == constant('App\\Entity\\Power\\Inventory::TYPE_PARTIAL') %} {% if inventory.selectedList|length > 0 %} Validate Selection {% endif %} Product Selection {% endif %} {% endif %} {% elseif inventory.status == constant('App\\Entity\\Power\\Inventory::STATUS_VALIDATED') %} Start First Counting {% elseif inventory.status == constant('App\\Entity\\Power\\Inventory::STATUS_PROCESSING_COUNTING_ONE') %} Add line Validate First Counting {% elseif inventory.status == constant('App\\Entity\\Power\\Inventory::STATUS_PROCESSING_COUNTING_TWO') %} Add line Validate Second Counting {% elseif inventory.status == constant('App\\Entity\\Power\\Inventory::STATUS_PROCESSING_COUNTING_THREE') %} Add line Validate Third Counting {% elseif inventory.status == constant('App\\Entity\\Power\\Inventory::STATUS_TREATED') %} {% if is_granted('ROLE_ADMIN') %} Validate Treatment {% else %} {% endif %} {% endif %}
{% if verificationResult is not null %}
Double Problem {{ verificationResult.countNoBarcodeNoEmp }}
Problem Barcode {{ verificationResult.noBarcode }}
Problem Emplacement {{ verificationResult.noEmp }}
Global {{ verificationResult['data']|length }}
{% if verificationResult['data']|length > 0 %}
Result :
Please fix all problems and retry this step of verification . Retry
{% set index = 1 %} {% for line in verificationResult['data'] %} {% set index = index + 1 %} {% endfor %}
Num Ref Barcode Emplacement
{{ index }} {{ line.ref }} {{ line.barcode }} {{ line.emplacement }}
Num Ref Barcode Emplacement
{% elseif verificationResult['data']|length == 0 %}
Result :
All products is ready for inventory ! please click to validate this step . Validate
{% endif %} {% endif %} {% if inventoryLines is not null and inventory.status > constant('App\\Entity\\Power\\Inventory::STATUS_VALIDATED') %}
{% if is_granted('ROLE_ADMIN') %} {% endif %} {% set index = 1 %} {% for line in inventoryLines %} {% if is_granted('ROLE_ADMIN') %} {% endif %} {% set index = index + 1 %} {% endfor %} {% if is_granted('ROLE_ADMIN') %} {% endif %}
Num Barcode Emplacement Qty Is New Created By Created AtAction
{{ index }} {{ line.barcode }} {{ line.emplacement }} {{ line.qty }} {{ line.new == 1 ? 'True' : 'False' }} {{ line.createdBy.firstname ~ ' '~ line.createdBy.lastname }} {{ line.createdAt|date("d/m/Y") }}
Num Barcode Emplacement Qty Is New Created By Created AtAction
{% endif %} {% if inventory.status == constant('App\\Entity\\Power\\Inventory::STATUS_TREATED') or inventory.status == constant('App\\Entity\\Power\\Inventory::STATUS_CLOSED') %}
{% set index = 1 %} {% for line in notValidProduct %} {% set index = index + 1 %} {% endfor %}
Num Barcode Emplacement Qty Last Counter Problem
{{ index }} {{ line.barcode }} {{ line.allEmp }} {{ line.totalQty }} {{ line.user }} {{ line.problem }}
Num Barcode Emplacement Qty Last Counter Problem
{% set index = 1 %} {% for key,line in listToUpdate %} {% set index = index + 1 %} {% endfor %}
Num Barcode New Emplacement New Qty Last Counter Problem
{{ index }} {{ key }} {% if line.newEmp is defined %} {{ line.newEmp }} {% endif %} {% if line.newQty is defined %} {{ line.newQty }} {% endif %} {{ line.user }} {{ line.problem }}
Num Barcode New Emplacement New Qty Last Counter Problem
{% set index = 1 %} {% for key,line in listToCreate %} {% set index = index + 1 %} {% endfor %}
Num Barcode Emplacement Qty Last Counter Problem
{{ index }} {{ key }} {{ line.allEmp }} {{ line.totalQty }} {{ line.user }} {{ line.problem }}
Num Barcode Emplacement Qty Last Counter Problem
New Total Dolibarr Total Diff
{{ totalNew }} {{ totalDolibar }} {{ totalNew - totalDolibar }}
{% set index = 1 %} {% for key,line in rapportPmp %} {% set index = index + 1 %} {% endfor %}
Num Barcode PMP Dolibarr Qty New Qty Diff Qty Dolibarr Total New Total Diff Total
{{ index }} {{ key }} {{ line.pmp }} {{ line.stockReel }} {{ line.newQty }} {{ line.diff }} {{ line.stockReelPMP }} {{ line.newQtyPMP }} {{ line.diffPMP }}
Num Barcode PMP Dolibarr Qty New Qty Diff Qty Dolibarr Total New Total Diff Total
{% if inventory.status == constant('App\\Entity\\Power\\Inventory::STATUS_TREATED') %} {% endif %}
{% endif %}
{% endblock %} {% block script %} {% endblock %}