快速导航
联系方式
- 邮箱:279481682@qq.com
- 网址:http://www.u8top.top
- 电话:18650807499
- 地址:厦门市翔安区新店镇普山二里11号204室
在T+填制凭证操作的时候,打开保存提示:填制凭证报错时提示 字段docOrdernum不允许重复
t3升级过来的数据,DocOrderNum不正确所致,使用以下通用方法进行修复
,执行以下sql即可
update gl_doc set DocOrderNum=cast(a.accountingyear as varchar(10))+isnull(replicate('0',2-len(a.accountingperiod)),'')
+cast(a.accountingperiod as varchar(30))+cast(b.sequencenumber as varchar(30)) +isnull(replicate('0',18-len(a.code)),'')+cast(a.code as varchar(30))
from gl_doc a left join AA_DocType b on a.iddoctype=b.id
where DocOrderNum<>cast(a.accountingyear as varchar(10))+isnull(replicate('0',2-len(a.accountingperiod)),'')
+cast(a.accountingperiod as varchar(30))+cast(b.sequencenumber as varchar(30)) +isnull(replicate('0',18-len(a.code)),'')+cast(a.code as varchar(30))」
- - - - - - - - - - - - - - -更多服务问题咨询厦门用友软件销售服务中心,厦门用友软件T+cloud销售中心,厦门用友售后中心