Adding an item after finish a quest

After finishing a quest, the functionality for adding that item into my inventory, is this a function in the inventory system or quest system?

i mean depends on how you wrote the code but i would put it in the quest system just like the xp and coins if you give a currency on quest finished just call the add to inventory function you have.