热门关键词用友NC 用友U8 用友U9 T+ 好业财 T3 好会计

    详细信息

    您现在的位置:网站首页 >> 百科问答 >> 详细信息

    T+11.51进行12月结后上一年度期末数很多结转不到下一年度的期初数

    发布时间:2024-7-1  

    特价活动:>>>> 畅云管家新购、续费7折优惠,畅捷通T+cloud、好会计、易代账、好业财、好生意云产品8折优惠 

    问题描述:

    做12月月结的时候,本年度的期末数很多结转不到下一年度的期初数,科目对照功能有问题,比如管理费用下有水电费,租赁费,在别的科目下也有水电费,租赁费的时候,科目对照就会出现混乱,已经打过最新补丁了。


    问题回复:

    针对于该问题,可以执行以下脚本解决。使用以下脚本整理2011年和2012年对照有问题的科目 if exists(select * from sys.procedures where name='AccountDZ')drop Proc AccountDZ GOcreate Proc AccountDZ @Pre varchar(20),@Cur varchar(20)asdeclare @TempAccount table(Code varchar(100),Num int)declare @AllCount intdeclare @NowCount int--查出所有科目CODEinsert into @TempAccount(Code,Num) select code,ROW_NUMBER() over(order by code) as Num from aa_account where accountingyear=@Pre or accountingyear=@Cur group by codeset @AllCount=(select count(*) from @TempAccount)set @NowCount=1--删除科目对照表数据delete AA_AccountAssociation where preaccountingyear=@Pre and currentaccountingyear=@Cur--循环科目CODEwhile(@NowCount<=@AllCount)begin declare @TempCode varchar(20)select @TempCode=Code from @TempAccount where num=@NowCountdeclare @PreAccountID varchar(50)declare @CurAccountID varchar(50)select @PreAccountID=id from AA_Account where code=@TempCode and accountingyear=@Pre select @CurAccountID=id from AA_Account where code=@TempCode and accountingyear=@Cur if(@PreAccountID!='' and @CurAccountID!='') insert into AA_AccountAssociation(id,code,name,currentaccountingyear,createdtime,sequencenumber,updated,updatedBy,idcurrentaccountDTO,idpreaccountDTO,preaccountingyear)values(newid(),NULL,NULL,@Cur,GETDATE(),0,getdate(),'System',@CurAccountID,@PreAccountID,@Pre) set @NowCount=@NowCount+1set @PreAccountID=''set @CurAccountID=''endGO--2011 上年科目 2012 当年科目exec AccountDZ '2011','2012'


     

     

    上一篇:T6-企业管理软件V6.2Plus1 应收对账单预览错乱

    客服电话:400-665-0028

    关键字:用友财务软件,畅捷通软件,财务软件,进销存软件,U9官网,用友U8,用友T1,用友T+,用友T3,用友T6,畅捷通好会计,好生意,智+好业财,用友培训服务售后公司,畅捷通运营培训服务公司

    版权所有:用友畅捷通软件 Copyright © 2025 All rights reserved.

    鲁ICP备2020041017号-6