You can add one of the following lines to special database field of the barcode in the label designer. Please use Code39 or Code128, don’t use UPC or EAN.

TransactionNumber

convert(varchar,storeid)+'-'+convert(varchar,transactionnumber)