Multiple Barcode (box barcode and unit barcode)

We have products that come in multi packs

each multipack has its own barcode and single variants have its own barcode.

we have created metadefinitions to store box barcode and qty per box.

struggling to find a way so on shopify pos when multipack is scanned variants are added based on qty per box

atm we are stuck with creating duplicate products (multipacks) and its a uphill task as we have lot of variants.