{% block stylesheets %} {% endblock %}
ARTICULO | TALLA | UDS. | IMPORTE | {% set toalSaleSumHere = 0 %} {% set toalDiscountSumHere = 0 %} {% for article in elementsIntoSale %} {% set stockPVP = article.stock.pvp %} {% set stockPVPFinal = article.stock.pvpFinal %} {% set stockPVPFinalForSale = article.stock.pvpFinalForSale %} {% set discountManual = (article.stock.pvpFinal - article.stock.pvpFinalForSale) %} {% set discountCampaing = (article.stock.pvp - article.stock.pvpFinalForSale) %} {% set discountPercentage = render(controller('CoreBundle:SalesPoint:getPercentage', {'stockId' : article.stock.id })) %} {% set discountPercentageCamapaing = render(controller('CoreBundle:SalesPoint:getPercentageCampaing', {'stock' : article.stock })) %}|
---|---|---|---|---|
{% if sale.shop.ticketItem == "model" or sale.shop.ticketItem == "" %} {{ article.stock.article.articleModel | upper | truncate(10, false, '...') }} {% endif %} {% if sale.shop.ticketItem == "reference" %} {{ article.stock.article.ref }} {% endif %} {% if sale.shop.ticketItem == "label" %} {{ article.stock.article.descriptionLabel }} {% endif %} | {{ article.stock.typeSize.description }} | 1 | {% if article.typeSaleElementStatus.id == constant('CoreBundle\\Entity\\TypeSaleElementStatus::ID_STATUS_RETURNED') %} {% if article.pvpFinal is not null %} - {{ article.pvpFinal | number_format(2, ',', '.') }}€ {% else %} - {{ article.stock.pvpFinalForSale | number_format(2, ',', '.') }}€ {% endif %} {% else %} {% if sale.group.groupConfiguration.showDiscountsDetailSaleTicket == false %} {{ article.stock.pvpFinalForSale | number_format(2, ',', '.') }}€ {% else %} {% if discountManual != 0 or discountCampaing != 0 %} {{ article.stock.pvp | number_format(2, ',', '.') }}€ {% set toalSaleSumHere = toalSaleSumHere + article.stock.pvp %} {% else %} {{ article.stock.pvpFinalForSale | number_format(2, ',', '.') }}€ {% set toalSaleSumHere = toalSaleSumHere + article.stock.pvpFinalForSale %} {% endif %} {% endif %} {% endif %} | |
Dto: {{ discountPercentage | number_format(2, ',', '.') }}% | {{ discountManual | number_format(2, ',', '.') }}€ | |||
{% if discountPercentageCamapaing > 0 %}
{{ stockPVPFinalForSale | number_format(2, ',', '.') }}€
{% endif %}
{% if discountPercentage > 0 %}
{% if discountPercentage > 0 %}
{% endif %} {{ article.stock.pvpFinal | number_format(2, ',', '.') }}€ {% endif %} |
{% if discountPercentageCamapaing > 0 %}
Rebajas: {{ discountPercentageCamapaing | number_format(2, ',', '.') }}%
{% endif %}
{% if discountPercentage > 0 %}
{% if discountPercentageCamapaing > 0 %}
{% endif %} Dto: {{ discountPercentage | number_format(2, ',', '.') }}% {% endif %} |
{% if discountCampaing > 0 %}
-{{ discountCampaing | number_format(2, ',', '.') }}€
{% set toalDiscountSumHere = toalDiscountSumHere + discountCampaing %}
{% endif %}
{% if discountManual != 0 %}
{% if discountManual != 0 %}
{% endif %} {{ discountManual | number_format(2, ',', '.') }}€ {% set toalDiscountSumHere = toalDiscountSumHere + (discountManual * -1) %} {% endif %} |
||
TOTAL | {{ ( render(controller('CoreBundle:SalesPoint:getTotalBase', { 'saleId' : sale.id })) - discountBase) | number_format(2, ',', '.') }}€ | |||
TOTAL | {{ toalSaleSumHere | number_format(2, ',', '.') }}€ | |||
Bolsa | {{ bag.amount | number_format(2, ',', '.') }}€ | |||
DTO TOTAL | {% if discountBase > 0 %} | -{{ discountBase | number_format(2, ',', '.') }}€ | {% else %}{{ (discountBase * -1) | number_format(2, ',', '.') }}€ | {% endif %}|
DTO TOTAL | -{{ toalDiscountSumHere | number_format(2, ',', '.') }}€ |