{% 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 }}
|
|||||||
|
{% set picture = asset('/images/galery_placeholder_200.png') %}
{% for image in documentDeclinationProduit.produitDeclinationValue.picture %}
{% if image.isSelected %}
{% set picture = app.request.getSchemeAndHttpHost() ~ vich_uploader_asset(image, 'file') %}
{% endif %}
{% endfor %}
|
{# Référence + description #}
{{ documentDeclinationProduit.reference }}
{{ documentDeclinationProduit.description }}
|
{# Stock #}
{{ documentDeclinationProduit.produitDeclinationValue.getQtyAvailable() }} {{ documentDeclinationProduit.produitDeclinationValue.getQtyReserved() }} | {# HT #}{{ documentDeclinationProduit.priceHT|number_format(3,',','') }} TND | {# TVA #}{% if documentDeclinationProduit.tva is not null %} {% set TotalTVA = TotalTVA + ((documentDeclinationProduit.priceHT * (documentDeclinationProduit.tva).number) / 100) %} {{ (documentDeclinationProduit.tva).number }} % {% else %} 0 % {% endif %} | {# Qte #}{{ documentDeclinationProduit.quantity }} | {# Remise #}{{ documentDeclinationProduit.discount|number_format(3,',','') }} {% if documentDeclinationProduit.discountType == 'percent' %} % {% set discountPrd = (documentDeclinationProduit.priceHT * documentDeclinationProduit.discount) / 100 %} {% else %} TND {% set discountPrd = documentDeclinationProduit.discount %} {% endif %} {% set discountPrdTotal = discountPrdTotal + discountPrd %} | {# TTC #}{{ 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 | {{ document.totalAmountHt|number_format(3, ',', '') }} TND |
| Total TVA | {{ document.totalTva|number_format(3, ',', '') }} TND |
| Total TTC | {{ TotalTTC|number_format(3, ',', '') }} TND |
| Remise {% if document.discountType == 'percent' %} ({{ document.discount ~ "%" }}) {% endif %} | {{ (discount + discountPrdTotal)|number_format(3, ',', '') }} TND |
| Frais de livraison | {{ document.deliveryTotal|number_format(3, ',', '') }} TND |
| Net à payer | {{ document.totalAmountTtc|number_format(3, ',', '') }} TND |