How to deal with item have more than one packing

We have similar problem. In manufacturing, each item is finally packed into a box, carton, or pallet, and each packing item should have it’s on serial number. For example. 1 mug is placed in a carton, and that carton is assigned a unique number. The same carton is then placed on a pallet, which in turn gets another serial number.

ERPNext does not seem to have any out-of-the-box solution for this.

If we are to create a new item, e.g. an item for Carton (containing 48 mugs per carton), then our inventory starts will show 1 Carton but I won’t know how many mugs are in stock.

I’m hoping one of the ERPNext gurus can shed light on this. @umair @JayRam

This was an earlier post on this issue which was closed without a solution: Handling Bale Packing In ERPNext