Many organizations struggle with the question of when to build a software in-house and when to buy off the shelf commercial product. There is no easy answer to it.
A number of criteria's come into play and need careful evaluation of each of them. From in house software product management and development capabilities to long term sustenance to the perceived complexity of the Software.
I have compiled various levers in the video linked below.