特价活动:>>>> 畅云管家新购、续费7折优惠,畅捷通T+cloud、好会计、易代账、好业财、好生意云产品8折优惠。
问:年结后某存货没有任何发生数,但删除时提示: 删除失败!
答:
情况1:
分析:该存货在ST_TotalAccount表(库存总账)中有记录,但没有任何发生数(iBeginQuantity=0)
解决:删除此表记录,参考如下语句
delete ST_TotalAccount
from ST_TotalAccount as a inner join
(
select cWhCode,cInvCode,cBatch,cFree1,cFree2 from ST_TotalAccount
group by cWhCode,cInvCode,cBatch,cFree1,cFree2
having isnull(sum(ibeginquantity),0)=0 and
isnull(sum(iBeginNum),0)=0 and
isnull(sum(iIncomeQuantity),0)=0 and
isnull(sum(iIncomeNum),0)=0 and
isnull(sum(iSentOutQuantity),0)=0 and
isnull(sum(iSentOutNum),0)=0
)as b
on b.cWhCode=a.cWhCode
and b.cInvCode=a.cInvCode
and isnull(b.cBatch,'')=isnull(a.cBatch,'')
and isnull(b.cFree1,'')=isnull(a.cFree1,'')
and isnull(b.cFree2,'')=isnull(a.cFree2,'')
客服电话:400-665-0028
关键字:用友财务软件,畅捷通软件,财务软件,进销存软件,U9官网,用友U8,用友T1,用友T+,用友T3,用友T6,畅捷通好会计,好生意,智+好业财,用友培训服务售后公司,畅捷通运营培训服务公司
版权所有:用友畅捷通软件 Copyright © 2025 All rights reserved.