Bet they outsourced the coding to India.
I doubt coding was the problem here. Something this screwed-up requires really, really bad managers.