Kindly go to the products >> Select the product >> Click on edit >> Scroll down >> Click on optional field >> Tap on barcode >> Change the barcode >> Click on add >> Click on update.