会员登陆会员名 密码免费注册
网站首页    用友资料    用友问题    用友工具    用友培训    用友产品    财务知识    业务知识    工具软件    成功案例    行业动态   

存货记账没反应

时间:2020-12-20  来源:本站  责任编辑:管理员  阅读:1

 --请先做好数据备份! --1.请在当前月未结帐前执行如下语句: delete from ia_summary where imonth>(select max(iperiod)+1 from gl_mend where bflag_ia=1) --2.再用以下语句删除存货总帐重复记录即可 declare @imonth as int set @imonth=0 while @imonth1) ia on ia_summary.cwhcode=ia.cwhcode and ia_summary.cinvcode=ia.cinvcode and ia_summary.imonth=ia.imonth where autoid not in(select min(autoid) from ia_summary where imonth=@imonth group by cwhcode,cinvcode,imonth having count(*)>1) and ia_summary.imonth=@imonth set @imonth=@imonth+1 end

文章评论
用户名:    查看全部评论
内 容: