用友模块反启用—数据库方法
今天碰到一家公司以前用的用友T3标准版,后来买了一个用友T3普及版,把T3标准版的帐套导入到T3普及版里用,由于以前用标准版的时候启用了固定资产模块,到普及版里之后没有固定资产模块,到月末结账的时候总账不能结账,提示固定资产模块未结账,但是普及版里没有固定资产模块,想按正常的方法进行反启用是不行的,所以只能从数据库下手进行修改,下面是我找到的一下语句,分享给大家使用,我只试了反启用固定资产的,没有问题,其他的未测试,使用的时候注意备份帐套。
(一)固定资产模块反启用:
update accinformation set cvalue=”
where csysid=’FA’ and ctype=’ddate’
–可省 and (cid=’601’or cid=’05’or cid=’603’OR CID=’602′ OR CID=’03’OR CID=’06’)
update gl_mend set bflag_FA=0
delete ua_account_sub where (cacc_id=’001′) and (cSub_Id = ‘FA’)
(二)工资模块反启用:
update accinformation set cvalue=”
where csysid=’wa’ and ctype=’ddate’
–可省 and (cid=’601’or cid=’05’or cid=’603′)
update gl_mend set bflag_Wa=0
delete ua_account_sub where (cacc_id=’001′) and (cSub_Id = ‘Wa’)
(三)采购模块反启用:
update accinformation set cvalue=”
where csysid=’PU’ and ctype=’ddate’
–可省 and (cid=’602’or cid=’122’or cid=’167′)
update gl_mend set bflag_PU=0
delete ua_account_sub where (cacc_id=’001′) and (cSub_Id = ‘PU’)
(四)销售模块反启用:
update accinformation set cvalue=”
where csysid=’SA’ and ctype=’ddate’
–可省 and (cid=’602’or cid=’143’or cid=’215′)
update gl_mend set bflag_SA=0
delete ua_account_sub where (cacc_id=’001′) and (cSub_Id = ‘SA’)
(五)库存模块反启用:
update accinformation set cvalue=”
where csysid=’st’ and ctype=’ddate’
–可省 and (cid=’602’or cid=’143′)
update gl_mend set bflag_st=0
delete ua_account_sub where (cacc_id=’001′) and (cSub_Id = ‘st’)
(六)存货模块反启用:
update accinformation set cvalue=”
where csysid=’IA’ and ctype=’ddate’
–可省 and (cid=’602’or cid=’104′)
update gl_mend set bflag_IA=0
delete ua_account_sub where (cacc_id=’001′) and (cSub_Id = ‘IA’)
(七)应收模块反启用:
update accinformation set cvalue=”
where csysid=’AR’ and ctype=’ddate’
–可省 and (cid=’29’or cid=’11’)
update gl_mend set bflag_AR=0
delete ua_account_sub where (cacc_id=’001′) and (cSub_Id = ‘AR’)
(八)应付模块反启用:
update accinformation set cvalue=”
where csysid=’AP’ and ctype=’ddate’
–可省 and (cid=’24’or cid=’09’)
update gl_mend set bflag_AP=0
delete ua_account_sub where (cacc_id=’001′) and (cSub_Id = ‘AP’)
晕乎乎,看不太懂
2014-05-21 下午4:13用过用友吗?会sql而且用过用友的话应该不难懂
2014-05-21 下午4:17