The Pretoria High Court has handed down a major ruling that changes how the National Energy Regulator of South Africa (NERSA) determines electricity tariffs for municipalities.