|
发表于 2016-3-11 22:24:48
|
显示全部楼层
--楼主辛苦了,我在实际操作中发现以下问题:
--1、用友的科目在数据库中存在时没有‘.’分隔符,因此用楼主的方法导入的科目和凭证都需要把科目中间的点分隔符去掉,我使用了以下语句,我的用友科目级次为4-2-2-2-2
update code set ccode= --更新科目表
case when len(ccode)=7 then (substring(ccode,1,4)+substring(ccode,6,2))
when len(ccode)=10 then (substring(ccode,1,4)+substring(ccode,6,2)+substring(ccode,9,2))
when len(ccode)=13 then (substring(ccode,1,4)+substring(ccode,6,2)+substring(ccode,9,2)+substring(ccode,12,2))
when len(ccode)=14 then (substring(ccode,1,4)+substring(ccode,6,2)+substring(ccode,9,2)+substring(ccode,13,2))
else ccode
end
update gl_accvouch set ccode= --更新凭证表
case when len(ccode)=7 then (substring(ccode,1,4)+substring(ccode,6,2))
when len(ccode)=10 then (substring(ccode,1,4)+substring(ccode,6,2)+substring(ccode,9,2))
when len(ccode)=13 then (substring(ccode,1,4)+substring(ccode,6,2)+substring(ccode,9,2)+substring(ccode,12,2))
when len(ccode)=14 then (substring(ccode,1,4)+substring(ccode,6,2)+substring(ccode,9,2)+substring(ccode,13,2))
else ccode
end
--2、楼主导入的期初余额仅写入了gl_accsum表,用友的期初余额还要写gl_accvouch表,所以导入后在用友软件的期初余额中查不到数据,此问题我直接让客户重录期初数解决。 |
|