We wanted a warning if two digits were NOT the same.
Both digits were read in with currency filter, see code (e.g. 5.123,24 and 546,23)!
by adjusting the currency to ceil:2 it is solved.
verschilWarning|690x307 for some examples.
{% capture warning_bezoldiging %}
{% assign totaal_bezoldiging_bedrijfsleiders = period.reconciliations.REMUNERATION_DIRECTORS.results.totaal_bezoldiging_bedrijfsleiders | currency %}
{% assign bezoldiging_bedrijfsleiders = $3 | currency %}
{% if bezoldiging_bedrijfsleiders != totaal_bezoldiging_bedrijfsleiders %}
{::warningtext } Het verschil bedraagt {{ totaal_bezoldiging_bedrijfsleiders-bezoldiging_bedrijfsleiders | currency | abs }} euro {:/warningtext}
{% endif %}
{% endcapture %}
Kind regards
Rutger (Cobofisk)