manage the inventory , need help

Your code is correct but it’s not working, right ?