feat: get_next_code(), get_next_sequence(), set code manually for samples with auotGeneratedCode=True