1st. Your template did not work for me, it has an issue on the transaction date.
2nd. I think what you are trying to do is not hide the roles that have SubType as Adjustments Reversal
Replace your for-each statement with this one, and remove the C and EC conditions from the table
That did the trick for me.