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

    详细信息

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

    畅捷通T+12.0标准版 条形码批量删除

    发布时间:2025-12-16  

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

    问题描述:

    你好,我们客户这个新开了个超市,重新建立个账套。现在存货资料里的条形码出了问题,之前11.6的版本时候,条形码默认会对应多计量单位的。现在12.0,默认一品多码,存货在没有做对照码的时候导入了条形码,现在出了问题扫任意条码出来都是单件,整箱的无法带出。现在冲之前账套导出带单位的条码导入,现在需求想把条形码批量的删除一下,五千多条数据单个删除太多了,看能否用脚本一次性把条形码删除。


    问题回复:

    --执行以下脚本前,先备份数据,测试无误后再在正式账套中执行。 

    begin tranIF OBJECT_ID('testclasstable', 'U') IS NOT NULLbegin drop table testclasstableend;with temp(id,idparent,code,isEndNode) as (select id,idparent,code,isEndNode from [AA_inventoryClass] where idparent =(select id from [AA_inventoryClass] where code='存货类别的code')union all select t.id,t.idparent,t.code,t.isEndNode from AA_InventoryClass as t inner join temp as c on t.idparent=c.id ) select id,idparent,code,isEndNode into testclasstable from temp where isendnode=1delete from AA_InventoryBarCode where idinventoryDTO in ( select id from AA_Inventory where idinventoryclass in ( select id from testclasstable where isendnode=1) )drop table testclasstablecommit trango


     

     

    上一篇:用友T+12.0标准版 固定资产与总账对账

    客服电话:400-665-0028

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

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

    鲁ICP备2020041017号-6