feat: additional custom discount applied to total price
This commit is contained in:
@@ -75,11 +75,25 @@
|
||||
</tr>
|
||||
{% for discount in priceBreakdown.discounts %}
|
||||
<tr>
|
||||
<td style="{{ cell }}">Rabatt {{ discount.label }} {{ discount.percent }} %</td>
|
||||
<td style="{{ cell }}">{{ discount.label }} {{ discount.percent }} %</td>
|
||||
<td style="{{ amount }}">– {{ (discount.amount / 100)|format_currency(currency) }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% if priceBreakdown.discounts is not empty %}
|
||||
{% if priceBreakdown.discountSubtotal is not null %}
|
||||
<tr>
|
||||
<td style="{{ cell }} border-top: 1px solid #d1d5db;">Zwischensumme</td>
|
||||
<td style="{{ amount }} border-top: 1px solid #d1d5db;">
|
||||
{{ (priceBreakdown.discountSubtotal / 100)|format_currency(currency) }}
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if priceBreakdown.totalDiscountDetails is not null %}
|
||||
<tr>
|
||||
<td style="{{ cell }}">{{ priceBreakdown.totalDiscountDetails.label }} {{ priceBreakdown.totalDiscountDetails.percent }} %</td>
|
||||
<td style="{{ amount }}">– {{ (priceBreakdown.totalDiscountDetails.amount / 100)|format_currency(currency) }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if priceBreakdown.discounts is not empty or priceBreakdown.totalDiscountDetails is not null %}
|
||||
<tr>
|
||||
<td style="{{ cell }} border-top: 1px solid #d1d5db; font-weight: bold;">Gesamtpreis nach Rabatt</td>
|
||||
<td style="{{ amount }} border-top: 1px solid #d1d5db; font-weight: bold;">
|
||||
|
||||
Reference in New Issue
Block a user