There are different approaches, I will suggest the following:
where the actual amounts are being printed, you can add invert on top of the currency filter.
For the Balance Sheet e.g. this is in the part main_table
You can replace the “false” argument with a variable that you only make true in case you want to invert the amount. I can see you already added the variable show_credits_positive, so I’ll continue with that one.