Identical item supplied by 2 different customers

I have an issue that I am not sure how to solve, I have the same identical product including barcode that are supplied by two different customers, I would like to track how many have been supplied by each customer and how many we have in stock that belong to each customer, I tried creating a variant but this will not allow me to add the same barcode to each item and select which customer it came from.

Any suggestions