问题原因:
库存单据号最后两位包含非法字符"-",导致生成单据计算最大单据号重复.
问题解答:
修改特殊字符,并告诉用户不要再使用此类字符。15375问题中的修改例子如下,可以作为参考:SELECT+ ccode from rdrecord where cwhcode='02' and ccode in ('D6051-1','000D6051-2','000D6051-3','000D6051-4','000D6051-5','000D6051-6','000D6051-7','000D6051-8','000D6051-9','000D6051.1') SELECT+ ccode from rdrecord where cwhcode='01' and ccode in ('00001066.1','00001003-3','00001066-2','1003-1','1003-2','1066-1','00001066-3','00001066-4','00001066-6','00001066-5','00001066-7','00001066-8','00001066-9','A10095-1','00A10095-2')