{{ 'Contratos que aplican para comisión por ventas:' }}
{% if contractsSummary|length > 0 %} {% set total = 0 %} {% for contractItem in contractsSummary.contracts %} {% set total = total + contractItem.commissionByContract %} {% endfor %} {% if contractsSummary.payment.user.invoiceCommissions %} {% else %} {% endif %}
Contrato Fecha de venta OPCs Venta total Pago inicial Comisión
{{ contractItem.contract.contractNumber }} {{ contractItem.contract.saleDate|date('d-m-Y') }} {% for opc in contractItem.contract.getOPCs %} {{ opc.fullName }}
{% endfor %}
{{ contractItem.contract.totalSale|price('') }} {{ contractItem.totalInitialPayments|price('') }} {{ contractItem.commissionByContract|price('') }}
{{ 'Subtotal'|upper }} {{ contractsSummary.payment.commissionAmount|price('') }}
{{ 'IVA'|upper }} {{ (total - contractsSummary.payment.commissionAmount )|price('') }}
{{ 'Total'|upper }} {{ total|price('') }}
{{ 'Total(Sin IVA)'|upper }} {{ contractsSummary.payment.commissionAmount|price('') }}
{% endif %}