西安卓识信息科技有限公司
|
电话:029-88190617
|
地址:陕西省西安市科技路1号
|
联系人:刘女士
|
电话:13379501476
|
QQ:408472479
|
|
|
|
标题: 用友财务软件现存量与实际库存不相符
|
[发表时间: 2012-08-31 11:34 ] |[浏览:次]
|
select cinvcode,sum(iainquantity) rk into #rk
from IA_Subsidiary
group by cinvcode order by cinvcode -----第一步
select cinvcode,sum(iaoutquantity) ck into #ck
from IA_Subsidiary
group by cinvcode order by cinvcode -----第二步
select a.cinvcode,a.rk,b.ck,isnull(a.rk,0)-isnull(b.ck,0) jc into #jc
from #rk a,#ck b
where a.cinvcode=b.cinvcode ----第三步
update a set iquantity=b.jc
from CurrentStock a,#jc b
where a.cinvcode=b.cinvcode
and a.iquantity<>b.jc ----第四步
|
+ 上一篇:没有了
|
+
下一篇:用友财务软件如何反记账
|
|
|
|