{{ sale.customer.getnameRazonSocial | upper }}
NIF: {{ sale.customer.cif | upper }}
{{ sale.customer.address | upper }}
{{ sale.customer.zip }} {{ sale.customer.city | upper }}
{{ sale.shop.company.name | upper }}
NIF: {{ sale.shop.company.cif | upper }}
{{ sale.shop.company.address | upper }}
{{ sale.shop.company.zip }} {{ sale.user.shop.company.city | upper }}
{{ sale.shop.address | upper }}
{{ sale.shop.city | upper }}
TFNO: {{ sale.shop.telephone | upper }}
Nº DE RESERVA: {{ sale.alias }}
VENDEDOR: {{ sale.user.name | upper }}
FECHA: {{ sale.createdAt | date('d/m/Y') }} {{ sale.createdAt | date('H:i') }} HORAS
FECHA DE RESERVA HASTA: {{ sale.dateReservation | date('d/m/Y') }}
{% if elements | length > 0 %}
ARTÍCULOS RESERVADOS
ARTICULO |
TALLA |
UDS. |
{% for obj in elements %}
{% if sale.shop.ticketItem == "model" or sale.shop.ticketItem == "" %}
{{ obj.article.articleModel | upper | truncate(10, false, '...') }}
{% endif %}
{% if sale.shop.ticketItem == "reference" %}
{{ obj.article.ref }}
{% endif %}
{% if sale.shop.ticketItem == "label" %}
{{ obj.article.descriptionLabel }}
{% endif %}
|
{{ obj.typeSize.description }} |
1 |
{% endfor %}
{% endif %}
{% if elementsPending | length > 0 %}
ARTÍCULOS PENDIENTES
ARTICULO |
TALLA |
UDS. |
{% for obj in elementsPending %}
{% if sale.shop.ticketItem == "model" or sale.shop.ticketItem == "" %}
{{ obj.article.articleModel | upper | truncate(10, false, '...') }}
{% endif %}
{% if sale.shop.ticketItem == "reference" %}
{{ obj.article.ref }}
{% endif %}
{% if sale.shop.ticketItem == "label" %}
{{ obj.article.descriptionLabel }}
{% endif %}
|
{{ obj.typeSize.description }} |
1 |
{% endfor %}
{% endif %}
{% if sale.saleElement | length > 0 %}
ARTÍCULOS EN VENTA
ARTICULO |
TALLA |
UDS. |
IMPORTE |
{% for article in sale.saleElement %}
{% if sale.saleFixedPrice and sale.typestatussale.id == constant('CoreBundle\\Entity\\TypeStatusSale::ID_STATUS_TO_IN_RESERVED') %}
{% 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') %}- {% endif %}
{{ article.pvpFinalForSale }} €
|
{% else %}
{% set discounts = arrayOfDiscountsForArticle[article.stock.article.id] %}
{% set today= "now"|date("Y-m-d") %}
{% set found1Tama = 0 %}
{% for discount in discounts %}
{% if (discount.getDiscounts().getDateStart()|date("Y-m-d") <= today and discount.getDiscounts().getDateEnd()|date("Y-m-d") >= today) or (discount.getDiscounts().getDateStart()|date("Y-m-d") <= today and discount.getDiscounts().getDateEnd() is null) %}
{% set found1Tama = found1Tama + 1 %}
{% endif %}
{% endfor %}
{% set found1 = 0 %}
{% set priceFinal = 0 %}
{% for discount in discounts %}
{% if loop.index == found1Tama %}
{% set found1 = 1 %}
{% if (discount.typeDiscount.id == constant('CoreBundle\\Entity\\TypeDiscount::TYPE_DISCOUNT_AMOUNT') )%}
{% set priceFinal = discount.amount %}
{% else %}
{% set priceRound = (discount.pvp - ( (discount.pvp * discount.amount ) / 100 ) ) %}
{% set priceFinal = priceRound | rounded_price(discount.roundJson) | number_format(2, ',', '.') %}
{% endif %}
{% endif %}
{% endfor %}
{% 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') %}- {% endif %}
{% if found1 == 0 %}
{{ article.stock.pvp }} €
{% else %}
{{ priceFinal }} €
{% endif %}
|
{% endif %}
{% endfor %}
TOTAL BASE |
|
|
{{ sale.totalSale }} € |
{% for bag in sale.bagOnSale %}
Bolsa |
|
|
{{ bag.amount | number_format(2, ',', '.') }}€ |
{% endfor %}
{% if sale.totalDiscount + sale.roundAmount > 0 %}
DTO |
|
|
{{ sale.totalDiscount + sale.roundAmount }} € |
{% endif %}
{% endif %}
TOTAL VENTA
{{ sale.totalFinal }}€
{% set totalPayed = 0 %}
{% for salePayment in sale.salePayment %}
{% if salePayment.typeSsalePaymentWhoPay.id == constant('CoreBundle\\Entity\\TypeSalePaymentWhoPay::ID_CLIENT_PAY') %}
{% set totalPayed = totalPayed + salePayment.ammount %}
{% elseif salePayment.typeSsalePaymentWhoPay.id == constant('CoreBundle\\Entity\\TypeSalePaymentWhoPay::ID_COMPANY_PAY') %}
{% set totalPayed = totalPayed - salePayment.ammount %}
{% endif %}
{% endfor %}
ENTREGA A CUENTA
{{ (totalPayed) | number_format(2, ',', '.') }}€
{% for salePayment in sale.salePayment %}
{% if salePayment.typeSsalePaymentWhoPay.id == constant('CoreBundle\\Entity\\TypeSalePaymentWhoPay::ID_CLIENT_PAY') %}
Cliente paga en
{% elseif salePayment.typeSsalePaymentWhoPay.id == constant('CoreBundle\\Entity\\TypeSalePaymentWhoPay::ID_COMPANY_PAY') %}
Dependiente paga en
{% endif %}
{{ salePayment.typeSsalePayment.description }} {{ salePayment.ammount | number_format(2, ',', '.') }}€
{% endfor %}
Nº TOTAL DE ARTICULOS: {{ sale.saleElement | length }}
IMPUESTOS INCLUIDOS
{{ sale.shop.textForReserved | upper }}