热门关键词好会计 好业财 T+ 易代账 好生意 用友U8 用友BIP

    详细信息

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

    畅捷通T+单据设置表头页签有空白行,无法切换至明细页签/单据设置的栏目设置里有空白行

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

    【问题现象】

    单据设置表头页签有空白行,无法切换至明细页签/单据设置的栏目设置里有空白行




    【解决方案】

    切记备份好账套数据,执行以下脚本修复ReportTablecol为空的情况:

    -- 脚本执行BEGIN

    declare @titleName nvarchar(50)='';

     

    -- 处理单据模板公用自定义项

    with voucherControls as

    (

    select evc.id,evc.FieldName,evc.OriginalTitle,evc.Title,eudi.OriginalTitle as udiOrgTitle,eudi.Title as udiTitle,edp.Title as propTitle

    from eap_VoucherControls evc

    left join eap_Voucher ev on evc.VoucherID=ev.ID

    left join eap_DTO ed on ev.DtoName = ed.Name

    left join eap_DTOProperty edp on ed.id = edp.idDTO and evc.FieldName = edp.FieldName

    left join Eap_UserDefineItems eudi on edp.FieldName = eudi.FieldName

    where (LEN(evc.title)=or evc.title is null or LEN(evc.OriginalTitle)=or evc.OriginalTitle is null) and 

    (

    (evc.FieldName like 'pubuserdef%' and eudi.Type=and (CHARINDEX(concat(',',ev.ID,','),concat(',',eudi.VoucherIDs,','),0)>-1))

    or

    (evc.FieldName like 'priuserdef%')

    )

    )

    update voucherControls set 

    OriginalTitle =(

    case isnull(OriginalTitle,'') 

    when '' 

    then (

    case isnull(udiOrgTitle,'') 

    when '' 

    then propTitle

    else udiOrgTitle

    end) 

    else OriginalTitle

    end),

    Title =(

    case isnull(Title,'') 

    when '' 

    then (

    case isnull(udiTitle,'') 

    when '' 

    then propTitle

    else udiTitle

    end) 

    else Title

    end);

     

    declare ns1 CURSOR LOCAL SCROLL for 

        select title from eap_voucher --where title in('销货单','销售订单','销售出库单');

        open ns1

        FETCH NEXT from ns1 INTO @titleName

        WHILE @@FETCH_STATUS=0

            BEGIN

    declare @headName nvarchar(50)='';

    declare @headDtoName nvarchar(50)='';

    declare @detailName nvarchar(50)='';

    declare @detailDtoName nvarchar(50)='';

    declare @idDto nvarchar(50)='';

    declare @idDetailDto nvarchar(50)='';

                select @headDtoName=DtoName,@headName=Name from eap_Voucher where title=@titleName;

                select @detailDtoName=DtoName,@detailName=Name from eap_VoucherTable where VoucherID = (select top 1 id from eap_Voucher where title=@titleName) and Title = '明细';

    select @idDto=id from eap_DTO where name =@headDtoName; 

    select @idDetailDto=id from eap_DTO where name =@detailDtoName; 

    -- 更新originalTitle

                with a as

                (

                    select ert.OriginalTitle,ert.dtoprop,edp.Title from eap_reporttablecol ert

                    join eap_DTOProperty edp on 

                    edp.Name = substring(ert.dtoprop,LEN(ert.dtoprop) - CHARINDEX('.',reverse(ert.dtoprop),0) + 2, LEN(ert.dtoprop))

    and edp.idDTO in (@idDto,@idDetailDto)

                    where (OriginalTitle is null or LEN(OriginalTitle)=0)

                    and ert.canDisplay=1

                )

    update a set OriginalTitle = Title;

    -- 更新title

                with b as

                (

                    select ert.title as targetTitle,ert.dtoprop,edp.Title from eap_reporttablecol ert

                    join eap_DTOProperty edp on 

                    edp.Name = substring(ert.dtoprop,LEN(ert.dtoprop) - CHARINDEX('.',reverse(ert.dtoprop),0) + 2, LEN(ert.dtoprop))

    and edp.idDTO in (@idDto,@idDetailDto)

                    where (ert.title is null or Len(ert.title) = 0)

                    and ert.canDisplay=1

                )

    update b set targetTitle = Title;

                FETCH NEXT from ns1 INTO @titleName

            END

    Close ns1

    deallocate ns1





     

     

    上一篇:T+销货单已删除费用单,但【费用分摊金额】未清空/销货单已删除费用单,销售毛利分析表的【分摊费用】未清空

    客服电话:400-665-0028

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

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

    鲁ICP备2020041017号-6