{% block stylesheets %} {% endblock %}

FACTURA
NUMERO DE FACTURA: {{ sale.invoiceNumber }}
FECHA: {{ sale.dateInvoice | date('d/m/Y') }}
NUMERO DE VENTA {{ sale.alias }}
■ Corresponde a: {{ sale.invoiceNumberAuto }}
■ Rectificativa: {{ sale.invoiceNumberRectifier }}



{{ sale.shop.company.name | upper }}
NIF: {{ sale.shop.company.cif | upper }}
{{ sale.shop.company.address | upper }}
{{ sale.shop.company.zip }} {{ sale.shop.company.city | upper }}
Tel: {{ sale.shop.telephone }} {{ sale.shop.email }}
CLIENTE

{% if sale.customer.razonSocialCompany is not empty %} {{ sale.customer.razonSocialCompany | upper }}
{% else %} {{ sale.customer.name | upper }}
{% endif %}


NIF: {{ sale.customer.cif | upper }}
{{ sale.customer.address | upper }}
{{ sale.customer.zip }} {{ sale.customer.city | upper }}
{% for article in elementsIntoSale %} {% if article.stock.pvpFinal != article.stock.pvpFinalForSale %} {% if article.typeSaleElementStatus.id == constant('CoreBundle\\Entity\\TypeSaleElementStatus::ID_STATUS_RETURNED') %} {% elseif article.typeSaleElementStatus.id == constant('CoreBundle\\Entity\\TypeSaleElementStatus::ID_STATUS_SELL') %} {% endif %} {% endif %} {% endfor %} {% for bag in sale.bagOnSale %} {% endfor %}
UDS. REFERENCIA DESCRIPCIÓN TALLA IMPORTE
1 {{ article.stock.alias }} - {% if sale.shop.ticketItem == "model" or sale.shop.ticketItem == "" %} {{ article.stock.article.articleModel }} {% endif %} {% if sale.shop.ticketItem == "reference" %} {{ article.stock.article.ref }} {% endif %} {% if sale.shop.ticketItem == "label" %} {{ article.stock.article.descriptionLabel }} {% endif %} {{ article.stock.article.articleModel }} {{ article.stock.article.articleColor }} {{ article.stock.typeSize.description }} {% if article.typeSaleElementStatus.id == constant('CoreBundle\\Entity\\TypeSaleElementStatus::ID_STATUS_RETURNED') %} - {{ article.stock.pvpFinalForSale | number_format(2, ',', '.') }} € {% else %} {{ article.stock.pvpFinalForSale | number_format(2, ',', '.') }}€ {% endif %}
Dto: {{ render(controller('CoreBundle:SalesPoint:getPercentage', {'stockId' : article.stock.id })) | number_format(2, ',', '.') }}% {{ (article.stock.pvpFinalForSale -article.stock.pvpFinal) | number_format(2, ',', '.') }}€{{ (article.stock.pvpFinal - article.stock.pvpFinalForSale) | number_format(2, ',', '.') }}€
1 Bolsa {{ bag.amount | number_format(2, ',', '.') }}€

FORMA DE PAGO : {% if bankAccount is not null %} {{ bankAccount.name }} - {{ bankAccount.accountNumber }} {% else %} {% for payment in sale.salePayment %} {% if payment.typeSsalePaymentWhoPay.id == constant('CoreBundle\\Entity\\TypeSalePaymentWhoPay::ID_CLIENT_PAY') %} {{ payment.typeSsalePayment.description | upper }} {% if payment.id in extraPaymentData|keys %} {{ extraPaymentData[payment.id].title }} {% endif %} , {% endif %} {% endfor %} {% endif %}


DESGLOSE TIPO DE IMPUESTO
{% for tax in taxesTicket %}
BASE IMPONIBLE
{{ tax["amount"] | number_format(2, ',', '.') }}€
IMPUESTO: {{ tax["name"] }} ({{ tax["percentage"] }}%)
{{ tax["quota"] | number_format(2, ',', '.') }}€
{% endfor %}



TOTAL FACTURA :
{{ sale.totalFinal | number_format(2, ',', '.') }}€

{{ sale.shop.company.textForInvoices}}
{% if ticketBAI_QR != "" %}
{{ identificadorTBAI }}

{% endif %}