百科问答

百科问答 国内资讯 公司资讯 政策法规 培训资料 产品下载

用友T6 5.1需要更改会计期间

发布时间:2024-7-1 

特价活动:>>>> 用友U8、T6、T+、T3软件产品4折优惠,畅捷通T+cloud、好会计、好业财、好生意云产品6-8折优惠,另有话费赠送。

 

问题描述:
客户的账套前期准备了很多基础资料跟自定义设置、模板设置等等,做完了才发现没有更改会计日期。因为客户的公司是每个月的1号~25号为一个会计期间,12月为最后一个会计期间。但是现在无法更改了。重新建账工作量又特别大,可否用数据库语句直接更改会计期间。现在账套内是没有单据的,只有基础资料与自定义项。


问题回复:

这个修改的话您可能需要了解一下这个软件的机制, 比如1月份启用账套,那么他的期间为1月1号~25号,然后2月份的期间即为 1月26号~2月25号。 若是其他月份的话, 例如3月份: 1月1号~1月31号。 2月1号~2月28号。 3月1号~3月25号。 3月26号~4月25号。以此类推。 然后修改的脚本格式为:(以001账套号为例,会计年度为2019年,不一致的注意要修改) 两种 比如1月份启用账套 

update UFSystem..UA_Period set dBegin='2019-01-01',dEnd='2019-01-25' where cAcc_Id='001' and iYear='2019' and iId=1 update UFSystem..UA_Period set dBegin='2019-01-26',dEnd='2019-02-25' where cAcc_Id='001' and iYear='2019' and iId=2 update UFSystem..UA_Period set dBegin='2019-02-26',dEnd='2019-03-25' where cAcc_Id='001' and iYear='2019' and iId=3 update UFSystem..UA_Period set dBegin='2019-03-26',dEnd='2019-04-25' where cAcc_Id='001' and iYear='2019' and iId=4 update UFSystem..UA_Period set dBegin='2019-04-26',dEnd='2019-05-25' where cAcc_Id='001' and iYear='2019' and iId=5 update UFSystem..UA_Period set dBegin='2019-05-26',dEnd='2019-06-25' where cAcc_Id='001' and iYear='2019' and iId=6 update UFSystem..UA_Period set dBegin='2019-06-26',dEnd='2019-07-25' where cAcc_Id='001' and iYear='2019' and iId=7 update UFSystem..UA_Period set dBegin='2019-07-26',dEnd='2019-08-25' where cAcc_Id='001' and iYear='2019' and iId=8 update UFSystem..UA_Period set dBegin='2019-08-26',dEnd='2019-09-25' where cAcc_Id='001' and iYear='2019' and iId=9 update UFSystem..UA_Period set dBegin='2019-09-26',dEnd='2019-10-25' where cAcc_Id='001' and iYear='2019' and iId=10 update UFSystem..UA_Period set dBegin='2019-10-26',dEnd='2019-11-25' where cAcc_Id='001' and iYear='2019' and iId=11 update UFSystem..UA_Period set dBegin='2019-11-26',dEnd='2019-12-31' where cAcc_Id='001' and iYear='2019' and iId=12 若是其他月份的话, 例如3月份: update UFSystem..UA_Period set dBegin='2019-01-01',dEnd='2019-01-31' where cAcc_Id='001' and iYear='2019' and iId=1 update UFSystem..UA_Period set dBegin='2019-02-01',dEnd='2019-02-28' where cAcc_Id='001' and iYear='2019' and iId=2 update UFSystem..UA_Period set dBegin='2019-03-01',dEnd='2019-03-25' where cAcc_Id='001' and iYear='2019' and iId=3 update UFSystem..UA_Period set dBegin='2019-03-26',dEnd='2019-04-25' where cAcc_Id='001' and iYear='2019' and iId=4 update UFSystem..UA_Period set dBegin='2019-04-26',dEnd='2019-05-25' where cAcc_Id='001' and iYear='2019' and iId=5 update UFSystem..UA_Period set dBegin='2019-05-26',dEnd='2019-06-25' where cAcc_Id='001' and iYear='2019' and iId=6 update UFSystem..UA_Period set dBegin='2019-06-26',dEnd='2019-07-25' where cAcc_Id='001' and iYear='2019' and iId=7 update UFSystem..UA_Period set dBegin='2019-07-26',dEnd='2019-08-25' where cAcc_Id='001' and iYear='2019' and iId=8 update UFSystem..UA_Period set dBegin='2019-08-26',dEnd='2019-09-25' where cAcc_Id='001' and iYear='2019' and iId=9 update UFSystem..UA_Period set dBegin='2019-09-26',dEnd='2019-10-25' where cAcc_Id='001' and iYear='2019' and iId=10 update UFSystem..UA_Period set dBegin='2019-10-26',dEnd='2019-11-25' where cAcc_Id='001' and iYear='2019' and iId=11 update UFSystem..UA_Period set dBegin='2019-11-26',dEnd='2019-12-31' where cAcc_Id='001' and iYear='2019' and iId=12

XT+Cloud、好业财、好会计、易代账、易代账,好生意,限时6-8折活动!

截屏,微信识别二维码

客服QQ:5151867

(点击QQ号复制,添加好友)