{% for product in data.products %} {% set isCombo = product.productsCombo|length %} {% set editRoute = ""%} {% if p.isCombo == false and p.isParent == false %} {% set editRoute = path('ProductViewsController_simpleProductEditView', { 'id': p.productId }) %} {% endif %} {% if p.isCombo %} {% set editRoute = path('ProductViewsController_comboProductEditView', { 'id': p.productId }) %} {% endif %} {% if p.isParent %} {% set editRoute = path('ProductViewsController_variantProductEditView', { 'id': p.productId }) %} {% endif %} {% if isCombo %} {% include "AppBundle:Ordenes:edit/combo_product_billing.html.twig" with {'combo': product, 'index': loop.index, 'colspan': 6} %} {% endif %} {% endfor %}
SKU Titulo Precio Unitario Cantidad Subtotal
{{ product.sku }} {% if isCombo %} {% endif %}{{ product.name }} {{ product.unit_price | number_format(2, '.', ',') }} {{ product.quantity }} {{ (product.unit_price_with_taxes * product.quantity) | number_format(2, '.', ',') }}{% if isCombo %} {% endif %}