I think we will never know because the maximum of money that you can have is 999,999 until gen V, afterwards it's 9,999,999. Idk if there is a cheat that allow more than 999,999. So it's imposible to know! Source