Can’t Create Duplicate Barcodes


I was trying to create barcode for variants, my variants differentiate on the basis of Size(S,M,L,XL). All the variants have the same barcode, but when I try the same thing on ERPnext it gives me an error , Barcode already exists for another product. Kindly help.
Have unchecked in Unique checkbox in Item Barcode Doctype.