Minimal testing will always come back to bite you.
Also a good software engineer would have insisted on a better spec and then testing to prove it out. Wonder if junior coders were to blame.
I dont know the difference between how I was trained 40 years ago when learning BASIC and FORTRAIN, but specing out was discussed literally in the first semester when functions were discussed.
Programming languages might change, programming logic doesnt.
And certainly, if this is how they are programming for other companies, I would be auditing my codeand my financial auditors because I bet you will find a shitload of adjustments in your books.