Advancement on consume item if other item is in inventory or slots

So basically I'm trying to make an advancement that triggers if a player has a certain item with an enchantment in their inventory, and they try and consume an item that doesn't have that same enchantment on it. Currently this is the code that I have, but it doesn't seem to be working. Any help is apprecaited, thanks!
Continue to help post