{% extends '@Core/base.html.twig' %} {% block javascript %} {{ parent() }} {% endblock %} {% block sectionTitle %}Artículo {% endblock %} {% block sectionActions %} {% if user.isUserFranchise == false %} {% if isLite == false %} {% if forReceivingStock > 0 %}
PENDIENTE
{% else %}
PENDIENTE
{% endif %} {% else %} {% if forReceivingStock > 0 %}
PENDIENTE
{% else %}
PENDIENTE
{% endif %} {% endif %} {% if inServiceStock > 0 %}
DISPONIBLE
{% elseif inServiceStock < 0 %}
DISPONIBLE
{% else %}
DISPONIBLE
{% endif %} {% if roleRight == true %} {% if inSaleStock > 0 %}
VENDIDO
{% elseif inSaleStock < 0 %}
VENDIDO
{% else %}
VENDIDO
{% endif %} {% endif %} {% endif %} {% endblock %} {% block breadcrumbLinks %}
  • Artículos
  • {% if elemento %}
  • Editar
  • [ Creado el {{ elemento.dateCreation | date("d/m/Y - H:i:s") }}]
  • {% else %}
  • Nuevo
  • {% endif %} {% endblock %} {% block content %} {% for flash_message in app.session.flashBag.get('success') %}
    {{ flash_message }}
    {% endfor %} {% for flash_message in app.session.flashBag.get('error') %}
    {{ flash_message }}
    {% endfor %} {% if threadsDiscount %}
    Actualizando este artículo dentro de campaña de rebajas.
    {% endif %} {% if threadsWebsite %}
    Actualizando este artículo dentro de la web.
    {% endif %} {% if threadsArticleRealtime %}
    Actualizando los datos de este artículo en segundo plano.
    {% endif %}
    {% if elemento %}
    {% if elemento.id %}
    COD-Artículo:
    {{ elemento.alias }}
    {% if elemento.externalSoftwareId %}
    ID. Externo:
    {{ elemento.externalSoftwareId }}
    {% endif %} {{ render (controller('CoreBundle:Article:renderArticleLocatorAlias',{'articleId':elemento.getId()})) }} {% if elemento.group.groupConfiguration.showAutoincrementNumberForArticle %}
    Nº ordenación:
    {{ elemento.autoIncrement }}
    {% endif %} {% if elemento.ref %}
    Ref. fabricante:
    {{ elemento.ref }}
    {% endif %}
    Creado: {{ elemento.dateCreation | date("d/m/Y H:i:s") }}
    {% if elemento.isDisabled %}
    Desactivado
    {% endif %}
    {% if roleRight == true or isOffice %} {% if commmonCostPrice | length == 1 and margin > 0 %}
    {{ margin | number_format(2, '.', '') }} Margen comercial
    {{ marginWithourTaxes | number_format(2, '.', '') }} Margen comercial sin impuestos
    {% else %} {% endif %} {% endif %}
    {% if roleRight == true or isOffice %} {% if elemento.group.groupConfiguration.showCostPriceWithoutTaxes %}
    P.Coste( SIN Impuestos )

    {{ costPrice_NoTaxes }}€


    Precio medio
    Con descuentos
    {% endif %} {% if elemento.isWhiteLabel == false %}
    P.Coste( CON Impuestos )

    {{ commmonCostPriceWithDiscounts }}


    Precio medio
    Con descuentos
    {% if commmonCostPrice|length == 1 %} {% for key, priceCommon in commmonCostPrice %}
    P.Coste ( CON Impuestos )

    {{ key }}€


    Todas las tallas
    Sin descuentos
    {% endfor %} {% else %}
    {% if commmonCostPrice|length == 0 %} P. Costo ( SIN Impuestos )

    {{ elemento.getDefaultCostPrice() }} €


    Todas las tallas {% else %} P. Costo ( CON Impuestos )
    {% endif %} {% for key, priceCommon in commmonCostPrice %}
    {% set arraySizes = priceCommon|sort %} {% if arraySizes | length > 1 %} {{ arraySizes|slice(0,1)|join(" ") }} - {{ arraySizes|slice(arraySizes|length-1,1)|join(" ") }} {% else %} {{ arraySizes|slice(0,1)|join(" ") }} {% endif %} :  
    {{ key }}€
    {% endfor %}
    {% endif %} {% endif %} {% endif %} {% if elemento.isWhiteLabel == false %} {% if commmonPrice|length == 1 %} {% for key, priceCommon in commmonPrice %}
    PVP

    {{ key }}€


    Todas las tallas
    {% endfor %} {% else %}
    PVP
    {% if commmonPrice|length == 0 %}

    {{ elemento.getDefaultPVP() }} €


    Todas las tallas {% endif %} {% for key, priceCommon in commmonPrice %}
    {% set arraySizes = priceCommon|sort %} {% if arraySizes | length > 1 %} {{ arraySizes|slice(0,1)|join(" ") }} - {{ arraySizes|slice(arraySizes|length-1,1)|join(" ") }} {% else %} {{ arraySizes|slice(0,1)|join(" ") }} {% endif %} :   {{ key }}€
    {% endfor %}
    {% endif %} {% endif %} {% if elemento.isWhiteLabel == false %} {{ render (controller('CoreBundle:Discounts:_pricesForDiscountsToHeaderArticle',{'articleId':elemento.getId()})) }} {% endif %}
    {{ render(url('article_header', {'articleId' : articleId})) }}
    {% if elemento.isWhiteLabel == false %}
    {% if roleRight == true or isOffice or (isShopManager or isWarehouseAssistant) %} {% if elemento %}
    {% endif %} {% endif %} {% if elemento.statsAvailable > 0 %}
    {% endif %} {% set break = true %} {% for stock in elemento.stocksLite %} {% if stock.typeStatusStock.id == constant('CoreBundle\\Entity\\TypeStatusStock::ID_STATUS_AVAILABLE') and break %}
    {% set break = false %} {% endif %} {% endfor %} {% if roleRight == true or isOffice %} {% if isLite == false %} {% endif %}
    {% endif %}
    {% if elemento.isWhiteLabel == false %} {% if elemento.id %}
    {% if elemento.group.groupConfiguration.isTrendico %}
    {% endif %} {% if elemento.isDisabled %}
    {% endif %} {% endif %} {% endif %}
    {% else %} {% if elemento.isDisabled %}
    {% endif %} {% endif %}
    {% endif %} {% endif %}
    {% if roleRight == true or isOffice %} {% if elemento %} {% if elemento.isWhiteLabel == false %}
    {% if elemento is defined and elemento.id %}
    {% for key, tax in taxes %} {% endfor %}
    Impuesto % Cantidad Costo con impuestos
    {{ tax.acronym }} {{ tax.percentage }} 0.00 0.00
    Total 0.00 0.00 0.00
    {% if user.group.groupConfiguration.articleExtraPricesSectionEnabled %}

    Tarifa extra personalizada
    {% if elemento.isWhiteLabel == false %}
    {{ render(url('article_form_article-price', {'id' : elemento.id})) }}
    {% endif %} {% endif %}


    Histórico de cambios masivos de precios



    {% endif %}
    {% endif %} {% endif %} {% if elemento %} {% if elemento.isWhiteLabel == false %}
    {% if elemento is defined and elemento.id %} {% endif %}
    {% endif %} {% endif %} {% if elemento %} {% endif %} {% if elemento.id %} {% if elemento.isWhiteLabel == false %} {% if isLite == false %}
    {% endif %} {% endif %} {% endif %} {% if elemento.id %}
    {% if roleRight == true %}
    {# {{ tableStockSales | raw }} #}
    {% else %}
    No tiene permisos para ver esta sección.
    {% endif %}
    {% endif %} {% if elemento.id %} {% if elemento.isWhiteLabel == false %}
    {% endif %} {% endif %} {% endif %} {% if roleRight == true or isOffice or user.isWebManager %} {% if user.group.groupConfiguration.isAvailableWebsite %} {% if elemento %} {% if elemento.isWhiteLabel == false %}
    {% if elemento is defined and elemento.id %}
    {% if websiteConfigs | length == 1 %}
    {% if elemento is defined and elemento.id %}
    {% endif %}
    {% else %}
    {% if elemento is defined and elemento.id %}
    {% endif %}
    {% for websiteConfig in websiteConfigs %}
    {% endfor %}
    {% endif %} {% if is_granted('ROLE_PREVIOUS_ADMIN') %}
    {% endif %}
    {% endif %}
    {% if elemento is defined and elemento.id %}
    {% form_theme formMainPicture 'bootstrap_3_layout.html.twig' %} {{ form_start(formMainPicture, {'attr': {'id': 'articleMainPictureFormBasic'}}) }} {{ form_errors(formMainPicture) }}

    Imagen principal del artículo

    {{ form_row(formMainPicture.file, { 'attr': {'tabindex': '1'} }) }}
    {{ form_end(formMainPicture) }}
    {% if websiteConfigs | length == 1 %} {{ render(url('article_form_images_web', {'article' : elemento.id, 'websiteConfig' : websiteConfigs[0].id})) }} {% else %}
    {% for websiteConfig in websiteConfigs %}
    {{ render(url('article_form_images_web', {'article' : elemento.id, 'websiteConfig' : websiteConfig.id})) }}
    {% endfor %}
    {% endif %} {% endif %}
    {% endif %} {% endif %} {% endif %} {% if user.group.groupConfiguration.amazonIntegration %} {% if elemento.isWhiteLabel == false %}
    {% if elemento is defined and elemento.id %}
    {% if is_granted('ROLE_PREVIOUS_ADMIN') %}
    {% endif %} {% endif %}
    {% endif %} {% endif %} {% if user.group.groupConfiguration.amazonPrimeAutoManaged %} {% if elemento.isWhiteLabel == false %}
    {% if elemento is defined and elemento.id %}
    {% if is_granted('ROLE_PREVIOUS_ADMIN') %}
    {% endif %} {% endif %}
    {% endif %} {% endif %} {% if user.group.groupConfiguration.spartooIntegration %} {% if elemento.isWhiteLabel == false %}
    {% if elemento is defined and elemento.id %}
    {% if is_granted('ROLE_PREVIOUS_ADMIN') %}
    {% endif %} {% endif %}
    {% endif %} {% endif %} {% if user.group.groupConfiguration.isTrendico %} {% if elemento.isWhiteLabel == false %}
    {% if elemento is defined and elemento.id %}
    {% endif %}
    {% endif %} {% endif %} {% if elemento.id %} {% if elemento.isWhiteLabel == false %}
    {% if roleRight == true %}
    {% else %}
    No tiene permisos para ver esta sección.
    {% endif %}
    {% endif %} {% endif %} {% endif %} {% if user.group.groupConfiguration.usePendingStockForReservation %}
    {% if elemento is defined and elemento.id %}
    {# {{ render (controller('CoreBundle:Article:renderArticlePendingReservations',{'articleId':elemento.getId()})) }}#}
    {% endif %}
    {% endif %} {% if not detail %}
    {% else %}
    {% endif %} {% if elemento.id %} {{ render(url('article_form_static', {'id' : elemento.id})) }} {% else %} {{ render(url('article_form_static', {'id' : 0})) }} {% endif %}
    {% if elemento.isWhiteLabel == false %} {% if elemento.id %}
    {% else %}
    {% endif %}
    {{ tableStock | raw }} {% if isLite == false %} {% if roleRight == true or isOffice or (isShopManager or isWarehouseAssistant)%} {% if activeStockOptimization is null %}
    {% else %} {% endif %} {% endif %} {% endif %}
    {% if elemento %} {% else %} Limpiar {% endif %}
    {% endif %}
    {% if elemento.isWhiteLabel == false %} {% include '@Core/Article/_article_extra_barcode.html.twig' %} {% include '@Core/Article/_article_jarvis_barcode.html.twig' %} {% include '@Core/Article/_article_gargantua_realtime_info.html.twig' %} {% include '@Core/Article/_article_shemsuhor_realtime_info.html.twig' %} {% include '@Core/Article/_article_extra_amazon_offer_price.html.twig' %} {% endif %} {% include "@Core/Article/_stock_modal_menu.html.twig" %}
    {% endblock %} {% block script %} {% endblock %}