{% extends'@admin/base.html.twig' %} {% block stylesheets %} {{ parent() }} {% endblock %} {% block extra_scripts %} {% endblock %} {% block subheader %}
| Image | Référence | Stock | HT | TVA | Qte | Remise | TTC |
|---|---|---|---|---|---|---|---|
|
{{ documentComment.description }}
|
|||||||
|
Pack:
{{ documentDeclinationProduit.pack ? documentDeclinationProduit.pack.name : ('Pack #' ~ __packGroup) }}
{% if documentDeclinationProduit.packQty %}
Qté pack: {{ documentDeclinationProduit.packQty }}
{% endif %}
Mt pack: {{ __packTotal|number_format(3, ',', '') }} TND
|
|||||||
|
Autres produits (hors pack) |
|||||||
|
{% set picture = '' %}
{% for image in documentDeclinationProduit.produitDeclinationValue.picture %}
{% if image.isSelected %}
{% set picture = app.request.getSchemeAndHttpHost() ~ vich_uploader_asset(image, 'file') %}
{% endif %}
{% endfor %}
{% set parentProduit = documentDeclinationProduit.produitDeclinationValue.produit ?? null %}
{% if parentProduit %}
|
{{ documentDeclinationProduit.reference }}
{{ documentDeclinationProduit.description }} {% if __isPackLine %}
{{ documentDeclinationProduit.pack ? documentDeclinationProduit.pack.name : 'Pack' }}
{% endif %}
|
{{ documentDeclinationProduit.produitDeclinationValue.getQtyAvailable() }} {{ documentDeclinationProduit.produitDeclinationValue.getQtyReserved() }} | {{ documentDeclinationProduit.priceHT|number_format(3,',','') }} TND | {% if documentDeclinationProduit.tva is not null %} {{ (documentDeclinationProduit.tva).number }} % {% else %} 0 % {% endif %} |
{% set qte = documentDeclinationProduit.quantity ?? 0 %}
{% if qte > 1 %}
{{ qte }}
Qte > 1
{% else %}
{{ qte }}
{% endif %}
|
{{ documentDeclinationProduit.discount|number_format(3,',','') }} {% if documentDeclinationProduit.discountType == 'percent' %} % {% else %} TND {% endif %} {% set discountPrdTotal = discountPrdTotal + discountPrd %} | {{ documentDeclinationProduit.totalAmountTtc|number_format(3,',','') }} TND |
|
{{ document.delivery ? document.delivery.name : "n'est pas mentionnée" }} | — | — | 1 | {{ document.deliveryDiscount }} {% if document.deliveryDiscountType == 'percent' %}%{% else %}TND{% endif %} | {{ document.deliveryTotal|number_format(3, ',', '') }}TND | |
| Total HT | {{ TotalHT|number_format(3, ',', '') }} TND |
| Total TVA | {{ TotalTVA|number_format(3, ',', '') }} TND |
| Total TTC | {{ TotalTTC|number_format(3, ',', '') }} TND |
| Remise {% if document.discountType == 'percent' %} ({{ document.discount ~ "%" }}) {% endif %} | {{ totalDiscount|number_format(3, ',', '') }} TND |
| Net à payer (hors frais) | {{ netToPayBeforeDelivery|number_format(3, ',', '') }} TND |
| Frais de livraison | {{ document.deliveryTotal|number_format(3, ',', '') }} TND |
| Net à payer | {{ document.totalAmountTtc|number_format(3, ',', '') }} TND |