{% set totalTax = 0 %}
{% set totalWithoutTax = 0 %}
{% for line in order.lines %}
{% set childLinesCount = line.childShipmentLines.count() %}
{% set lineTax = (line.linePrice * (line.taxRate)/100)|round(2) %}
{% set totalTax = (totalTax + lineTax)|round(2) %}
{% set totalWithoutTax = (totalWithoutTax + line.linePrice)|round(2) %}
{{ line.product.name|length > 100 ? line.product.name[:120] ~ '...' : line.product.name}} |
{{ line.quantity }} |
{{ line.linePrice|round(2) }}€
|
{{ line.taxRate|round(2) }}
|
{{ lineTax|round(2) }}€
|
{{ line.linePrice|round(2) }}€
|
{% for subLine in line.childShipmentLines %}
{{ subLine.product.name|length > 100 ? subLine.product.name[:120] ~ '...' : subLine.product.name}} |
{{ subLine.quantity }} |
{% endfor %}
{% endfor %}
|
{{ totalTax|round(2) }}€ |
{{ totalWithoutTax|round(2) }}€ |
|
Gastos de envío |
{% set shippingCost = (order.order.shippingCost is null ? 0 : order.order.shippingCost) %}
{% set shippingIva = (shippingCost * 0.21)|round(2) %}
21 |
{{ shippingIva|round(2) }}€ |
{{ shippingCost|round(2) }}€ |
|
{{ (totalTax + shippingIva)|round(2) }}€ |
{{ (totalWithoutTax + shippingCost)|round(2) }}€ |
|
Total |
{{ (totalTax + totalWithoutTax + shippingIva + shippingCost)|round(2) }}€ |