{% block product_discount_save_info %}
{% set uvp = product.translated.customFields.grimm_customFields_uvp %}
{% set isRequestOnly = product.translated.customFields.grimm_customfields_productRequest_only %}
{% if uvp and isRequestOnly == false %}
{% if context.taxState == "gross"%}
{# convert uvp to gross #}
{% set uvp = (uvp * ((100 + product.tax.taxRate) / 100))|round(2) %}
{% endif %}
{% set discount = 0 %}
{% if product.calculatedPrice.unitPrice %}
{% set discount = uvp - product.calculatedPrice.unitPrice %}
{% endif %}
{% if discount > 0 and 'product.save' %}
<span class="product-box__price-discount">{{ "product.save"|trans|sw_sanitize }}{{ discount|currency }}</span>
{% endif %}
{% endif %}
{% endblock %}