→ in these both cases the template is reconciled and can turn green.
In all other cases it needs to be red.
But this doesn’t work - the template is always green.
Can someone help me out on how to get these 2 together?
When the formula within an unreconciled tag has zero as an outcome (not to be mistaken for empty), the template will be fully reconciled and a green dot will be visible at the template level otherwise you will see a red triangle.
In order to test your code, I have assigned temporary values to the “maxturnover” & “maxwage” variables.
I have separated the IF statement and the declaration of the unreconciled tag from one another.
I have assigned a variable “unreconciled_value” to 0.
I have also added some optional code that will add an indicator and text to show why it is not reconciled (hover over the red triangle to see the text).
I’m not sure what is currently blocking you? What exactly is not working? Have you printed maxturnover and maxwage as a test? Are these actual values or do they have a corrupt value, e.g. blank?
Also, based on your code I would think that two unreconcile indicators are shown, is this your desired outcome?