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

    详细信息

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

    用友软件_各种单据最大单据号的解决方法

    发布时间:2024-11-18  

    人工客服

    特价活动:>>>> 用友U8、T6、T+、T3软件产品4折优惠,畅捷通T+cloud、好会计、易代账、好业财、好生意云产品6-8折优惠 


    Tags:

    用友软件各种单据最大单据号的解决方法


    1、发货单

    * dbo.UA_Identity
    set ifatherid=(* Max(Cast(right(isnull(DLid,0),7) AS INT))AS ID FROM
    UFDATA_006_2012..
    dispatchlist),
    ICHILDID=(* Max(Cast(right(isnull(aoutoid,0),7) AS INT))AS ID FROM
    UFDATA_006_2012..dispatchlists) WHERE

    (CVOUCHTYPE=*dispatch* AND CACC_ID=*006*)

    2、委托代销结算单

    * dbo.UA_Identity
    set ifatherid=(* Max(Cast(right(isnull(id,0),7) AS INT))AS ID FROM
    UFDATA_006_2012..
    SA_SETTLEVOUCH),
    ICHILDID=(* Max(Cast(right(isnull(AUTOid,0),7) AS INT))AS ID FROM
    UFDATA_006_2012..SA_SETTLEVOUCHS) WHERE

    (CVOUCHTYPE=*SETTLEVOUCH* AND CACC_ID=*006*)

    3、调拨单

    * dbo.UA_Identity
    set ifatherid=(* Max(Cast(right(isnull(id,0),7) AS INT))AS ID FROM
    UFDATA_006_2012..
    transvouch),
    ICHILDID=(* Max(Cast(right(isnull(AUTOid,0),7) AS INT))AS ID FROM
    UFDATA_006_2012..transvouchs) WHERE (CVOUCHTYPE=*tr*

    AND CACC_ID=*006*)

    4,出入库单

    * dbo.UA_Identity
    set ifatherid=(* Max(Cast(right(isnull(id,0),7) AS INT))AS ID FROM
    UFDATA_006_2012..
    rdrecord32),
    ICHILDID=(* Max(Cast(right(isnull(AUTOid,0),7) AS INT))AS ID FROM
    UFDATA_006_2012..rdrecords32) WHERE (CVOUCHTYPE=*rd*

    AND CACC_ID=*006*)

    5、销售发票


    * dbo.UA_Identity
    set ifatherid=(* Max(Cast(right(isnull(sbvid,0),7) AS INT))AS ID FROM
    UFDATA_006_2012..
    salebillvouch),
    ICHILDID=(* Max(Cast(right(isnull(AUTOid,0),7) AS INT))AS ID FROM
    UFDATA_006_2012..salebillvouchs) WHERE

    (CVOUCHTYPE=*billvouch* AND CACC_ID=*006*)

    6、销售订单

    * UA_Identity
    set ifatherid=(* Max(Cast(right(isnull(id,0),7) AS INT))AS ID FROM
    UFDATA_006_2012..SO_SOMAIN),
    ICHILDID=(* Max(Cast(right(isnull(AUTOid,0),7) AS INT))AS ID FROM
    UFDATA_006_2012..SO_SODetails) WHERE

    (CVOUCHTYPE=*SOMAIN* AND CACC_ID=*006*)

    7、采购订单


    * UA_Identity
    set ifatherid=(* Max(Cast(right(isnull(cPOid,0),7) AS INT))AS ID FROM
    UFDATA_006_2012..PO_POMAIN),
    ICHILDID=(* Max(Cast(right(isnull(id,0),7) AS INT))AS ID FROM
    UFDATA_006_2012..PO_PODetails) WHERE (CVOUCHTYPE=*POMAIN*

    AND CACC_ID=*006*)

    select *   from UA_Identity where cAcc_Id=002
    UPDATE UA_Identity
    SET iFatherId='1000021842',iChildId='1000021842' WHERE  cAcc_Id=002 AND cVouchType='rd'
    select *  from UFDATA_002_2017..rdrecord32 order by ID DESCselect *   from UA_Identity where cAcc_Id=002
    UPDATE UA_Identity
    SET iFatherId='1000021842',iChildId='1000021842' WHERE  cAcc_Id=002 AND cVouchType='rd'
    select *  from UFDATA_002_2017..rdrecord32 order by ID DESC

     

     

    上一篇:用友T+软件物料清单子件的备注如何带入到委外加工单上

    客服电话:400-665-0028

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

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

    鲁ICP备2020041017号-6