A user can face the error message below:
"TypeError : Cannot call method "toLowerCase" of null"
This issue is caused by the company branch record not having the country field set (this is part of the STP (Single Touch Payroll setup) but for those that aren't reporting STP currently they will see this issue on termination runs.
Please follow the below steps to resolve:
1) Type ATO Company Branch in the global search and navigate to the page.
2) Edit the Branch record set just the Country Code to AU and save the record.