I have to store these invoice items as an array of a single invoice, and I am baffled about the best way to do it.
I don't want to create a separate product collection; I just want to store it inside the invoice collection. Is there a simple way to do it?
check out the 2 SS I provided.
At first, I thought of doing the relation with the product collection. However, my user pointed out that they need to store this separately, as they sometimes change the price and other details.