…. Including the functional specification: what is it meant to achieve (and avoid), ideally in sufficient detail to design, code and test it?
Plus a business case to cost-justify the investment – maybe comparing options including do-nothing.
If something was already coded, I guess some of that at least has been done already. So how come it didn’t make it to production? Is anything salveagable/reusable from the original initiative I wonder?