Merge pull request #6843 from guanhuan/creditnote-id-sequence