Add checkout function in barcode mode