Check Zone

{# I change the id to this format id="barcodeProductReturned-{{ orderDolibarr.id }}{{ 'now'|date('U') }} , because every request the old script stay in the cache and the first one every time executed and block the new one #}

List for checking

{% for product in productsBarcodes %} {% endfor %}
Ref Qty

{{ product.ref is defined ? product.ref : '' }}

{{ product.qty is defined ? product.qty : ''}} 0


Details of order

{% for product in products %} {% endfor %}
Image Ref Product Qty P.U Total

{{ product.ref is defined ? product.ref : '' }}

{% for item in product.items %} * {{ item.ref }}
{% endfor %}

{{ product.name is defined ? product.name : '' }} {#- {{ product.barcode is defined ? product.barcode : ''}} #}

{% for item in product.items %} * {{ item.name }}
{% endfor %}

{{ product.qty is defined ? product.qty : ''}}

{% for item in product.items %} * {{ item.qty * product.qty }}
{% endfor %}

{{ product.price is defined ? product.price : '' }}

{{ product.total is defined ? product.total : ''}}

TOTAL {{ orderDolibarr.total_ttc }}