Any item in a cell occupied by a merchant NPC that is also owned by said NPC will be available to be sold, assuming they can sell that item, this also extends to items in containers owned by the NPC.
There is a mod-added shop where I want to make the NPC sell the items in their shop (not sure why this wasn't done...), but all the items are set as owned by "Generic Owner". Do I have to manually change all the items to the Merchant NPC? I thought that "Generic Item" ownership was overridden by cell ownership, or is that just for items that are listed as having no owner at all?