特价活动:>>>> 畅云管家新购、续费7折优惠,畅捷通T+cloud、好会计、易代账、好业财、好生意云产品6-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,KIS,K3,云星空,云星辰,T1,用友T+,用友T3,用友T6,畅捷通好会计,好生意,智+好业财,速达软件