{% extends '@Core/base.html.twig' %} {% block sectionTitle %}Campañas de rebajas {% endblock %} {% block sectionActions %} {% endblock %} {% block breadcrumbLinks %}
  • Campañas de rebajas
  • Editar
  • {% endblock %} {% block content %} {% block script %} {% endblock %} {{ form_start(form) }} {{ form_errors(form) }}
    {% if threads %}
    Actualizando esta campaña de rebajas. Quedan {{ threads | length }} artículos por incluir/excluir de esta campaña.
    {% endif %}
    {% if discount is defined %}
    {{ discount.name }}
    {% endif %}
    {% for flash_message in app.session.flashBag.get('success') %}
    {{ flash_message }}
    {% endfor %}
    {{ form_label(form.name) }}
    {{ form_widget(form.name) }}
    {{ form_label(form.dateStart) }}
    {{ form_widget(form.dateStart) }}
    {{ form_label(form.nameForLabels) }}
    {{ form_widget(form.nameForLabels) }}
    {{ form_label(form.dateEnd) }}
    {{ form_widget(form.dateEnd) }}
    {{ form_label(form.shops) }}
    {{ form_widget(form.shops) }}
    Aplicar a todas

    {{ form_row(form.avoidTextAndHideDiscount, { 'attr': {'tabindex': '6'} }) }}

    {{ form_row(form.isAvailableOnWebsite, { 'attr': {'tabindex': '6'} }) }}
    {{ form_label(form.labelWebsiteName) }}
    {{ form_widget(form.labelWebsiteName) }}

    {% if roleRight == true %} {% endif %}
    {% if discount is defined %}
    {% if articlesIntoDiscount | length > 0 %}
    {% if roleRight %}
    {% endif %}
    {% endif %}
    {% set isTredico = group.groupConfiguration.trendico %} {% set showReference = group.groupConfiguration.showReference %} {% set useLocator = group.groupConfiguration.useLocator %} {% set useLocatorAlias = group.groupConfiguration.useLocatorAlias %} {% set showAutoincrementNumberForArticle = group.groupConfiguration.showAutoincrementNumberForArticle %} {% set removeColumnsWith0UnitsInDiscounts = group.groupConfiguration.removeColumnsWith0UnitsInDiscounts %} {% set showCostPriceWithoutTaxes = group.groupConfiguration.showCostPriceWithoutTaxes %} {% if useLocator %} {% if useLocatorAlias %} {% else %} {% endif %} {% endif %} {% if showAutoincrementNumberForArticle %} {% endif %} {% if isTredico or showReference %} {% endif %} {% if roleRight == true %} {% endif %} {% if groupConfiguration.articleExtraPricesSectionEnabled %} {% endif %} {% if roleRight == true %} {% endif %} {% for obj in articlesIntoDiscount %} {% if (not removeColumnsWith0UnitsInDiscounts and obj["stats_available"] > 0) or removeColumnsWith0UnitsInDiscounts %} {% if 'amazonaws' in obj["articleWebPath"] %} {% set urlFilename = obj["articleWebPath"] %} {% else %} {% set urlFilename = 'uploads/' ~ obj["articleWebPath"] %} {% endif %} {% set textsAlias = obj["alias"]|split('-') %} {% if useLocator %} {% if useLocatorAlias %} {% else %} {% endif %} {% endif %} {% if showAutoincrementNumberForArticle %} {% endif %} {% if isTredico or showReference %} {% endif %} {% if roleRight == true %} {% if showCostPriceWithoutTaxes %} {% if obj["isBySizes"] == "1" %} {% else %} {% if obj["defaultCostPrice"] == "" %} {% else %} {% endif %} {% endif %} {% else %} {% if obj["isBySizes"] == "1" %} {% else %} {% if obj["defaultCostPrice"] == "" %} {% else %} {% endif %} {% endif %} {% endif %} {% endif %} {% if obj["isBySizes"] == "1" %} {% else %} {% if obj["defaultPVP"] != "" %} {% else %} {% endif %} {% endif %} {% if groupConfiguration.articleExtraPricesSectionEnabled %} {% endif %} {% if (obj["typeDiscount"] == constant('CoreBundle\\Entity\\TypeDiscount::TYPE_DISCOUNT_AMOUNT') )%} {% endif %} {% if (obj["typeDiscount"] == constant('CoreBundle\\Entity\\TypeDiscount::TYPE_DISCOUNT_PERCENTAGE') )%} {% endif %} {% if (obj["typeDiscount"] == "0" )%} {% endif %} {% set articleAvailable = obj["stats_available"] %} {% if articleAvailable > 0 %} {% else %} {% endif %} {% if roleRight == true %} {% endif %} {% endif %} {% endfor %}
    COD-ArtículoAlias
    Localizador
    LocalizadorNº OrdenModelo Color Temporada Proveedor Marca SecciónRefTipo de
    artículo
    Descripción
    etiqueta
    P.CostePVPTarifa extraInclusión en campaña Descuento Precio rebajas DisponibleEliminar artículo
    {{ textsAlias[1] }}{{ obj["locatorAlias"] }}{{ obj["locator"] }}{{ obj["autoIncrement"] }}{{ obj["articleModel"] }} {{ obj["articleColor"] }} {{ obj["season"] }} {{ obj["dealer"] }} {{ obj["brand"] }} {{ obj["section"] }}{{ obj["ref"] }}{% if obj["typeArticle"] is defined %}{{ obj["typeArticle"] }}{% endif %} {{ obj["description_label"] }}
    {{ obj["defaultCostPrice"] }}{{ obj["stats_pc_resume_no_taxes"] | raw }}
    {{ obj["defaultCostPrice"] }}{{ obj["stats_pc_resume"] | raw }}
    {{ obj["defaultPVP"] }}€{{ obj["stats_pvp_resume"] | raw }} {% if discount.typeArticlePrice %} {% set typeArticlePriceId = discount.typeArticlePrice.id %} {% if typeArticlePriceId == 1 %} {{ obj["price1"] }}{% if obj["price1"] %}€{% endif %} {% elseif typeArticlePriceId == 2 %} {{ obj["price2"] }}{% if obj["price2"] %}€{% endif %} {% elseif typeArticlePriceId == 10 %} {{ obj["price3"] }}{% if obj["price3"] %}€{% endif %} {% elseif typeArticlePriceId == 11 %} {{ obj["price4"] }}{% if obj["price4"] %}€{% endif %} {% elseif typeArticlePriceId == 12 %} {{ obj["price5"] }}{% if obj["price5"] %}€{% endif %} {% endif %} {% endif %} {{ obj[0]["createdAt"] | date("d/m/Y H:i") }} Importe {{ obj[0]["amount"] }}€Porcentaje ({{ obj[0]["amount"] }}%)
    {% set priceRound = (obj[0]["pvp"] - ( (obj[0]["pvp"] * obj[0]["amount"] ) / 100 ) ) %} {{ priceRound | rounded_price(obj[0]["roundJson"]) | number_format(2, ',', '.') }}€
    {% if obj[0]["roundJson"] != "" %} {{ rounded_info(obj[0]["roundJson"])|raw }} {% endif %}
    {{ obj[0]["amount"] }}
    {% endif %}
    {{ form_end(form) }}
    {% endblock%}