{{ render (controller('CoreBundle:Article:renderArticleLocatorAlias',{'articleId':stock.article.getId()})) }} {% if stock.article.group.groupConfiguration.showAutoincrementNumberForArticle %} Nº ordenación de artículo: {{ stock.article.autoIncrement }}
{% endif %} COD-Stock: {{ stock.alias }}

Creado el {{ stock.createdAt | date("d/m/Y H:i:s") }}
{% for discount in discounts %}
{{ discount.discounts.name }}

{% if (discount.typeDiscount.id == constant('CoreBundle\\Entity\\TypeDiscount::TYPE_DISCOUNT_AMOUNT') )%} {{ discount.amount }}€ {% else %} {% set articlePrice = discount.discounts.getArticlePVPForThisDiscount(stock.article.id) %} {% if articlePrice is not null %} {% set useThisPVP = articlePrice %} {% else %} {% set useThisPVP = stock.pvp %} {% endif %} {% set priceRound = (useThisPVP - ( (useThisPVP * discount.amount ) / 100 ) ) %} {{ priceRound | rounded_price(discount.roundJson) | number_format(2, ',', '.') }}€ {% endif %}

Del {{ discount.discounts.dateStart | date('d-m-Y') }} {% if discount.discounts.dateEnd %} al {{ discount.discounts.dateEnd | date('d-m-Y') }}p {% endif %}
{{ render (controller('CoreBundle:Discounts:_discountsRenderStatusLabel',{'discountsId':discount.discounts.getId()})) }} {% if discount.roundJson != "" %} {{ rounded_info(discount.roundJson)|raw }} {% endif %}
{% endfor %} {% if stock.typeStatusStock.id == constant('CoreBundle\\Entity\\TypeStatusStock::ID_STATUS_SOLD') %} {{ render(controller('CoreBundle:Stock:paintStockSaleDetail' , { 'stock' : stock.id })) }} {% endif %}
PVP

{{ stock.pvp }}€

{% if roleRight == true %}
Precio Costo

{{ stock.costPricePlusTaxes }}€

{% endif %}

{{ stock.article.alias }} {{ render (controller('CoreBundle:Stock:listAlertForStock',{stockId:stock.id}))}} {{ stock.getTypeSize.description }}


{{ stock.article.getBrand()}} - {{ stock.article.articleModel}} - {{ stock.article.articleColor }}
{% if roleRight == true %} {{ stock.article.dealer.name }} - {% if stock.article.season %}
{{ stock.article.season.name }} {% endif %}
{% else %} {{ stock.article.dealer.name }} - {% if stock.article.season %} {{ stock.article.season.name }} {% endif %} {% endif %}
{% if stock.orders is not null %} {% if roleRight == true %} Pedido
{% endif %} {% endif %} {% if stock.reception %} Recepción
{% endif %} {% if render(controller('CoreBundle:Stock:isStockInReturn', { 'stock' : stock.id })) == 'true' %} Devolución

{% endif %} {% if stock.typeStatusStock.id == constant('CoreBundle\\Entity\\TypeStatusStock::ID_STATUS_RESERVE') %} {% set idSale = render(controller('CoreBundle:SalesPoint:findSaleByStock', { 'id' : stock.id })) %} {% if idSale != "" %} Reserva en venta

{% endif %} {% endif %}