问题现象: | 2012年的库存期初与上年不一致,例如:002仓库,2012年期初数据是662521,2011年底的余额是325285;另外,有些存货货位是空的,有些存货审核人是空的。 烦请集团老师协助解决,谢谢! 数据已经上传,威卡威2012-01-16.rar |
问题原因: | |
解决方案: | 您好,已就该问题与一线顾先生电话沟通,此问题【经查看数据--威卡威】现做如下分析与答复: 【问题原因】 经过检查数据发现用户在2012年库存期初做过相关调整导致上下年库存结存不一致。而库存期初中存在有正负相抵的记录是由于未打最新供应链年结补丁导致。由于该记录正负互相抵消不会对后续业务产生影响,若需删除可通过如下脚本处理即可。 【解决方案】 --以下为查询脚本 select * from rdrecord join rdrecords on rdrecord.id=rdrecords.id where cvouchtype='34' and bisstqc=1 and cwhcode='002' and cinvcode in('0211014','0211015','0211016','0211019','0211020') --以下为删除该记录的脚本,执行前请作好数据备份! select rdrecord.id,rdrecords.autoid into rdsz from rdrecord join rdrecords on rdrecord.id=rdrecords.id where cvouchtype='34' and bisstqc=1 and cwhcode='002' and cinvcode in('0211014','0211015','0211016','0211019','0211020') delete from rdrecords where autoid in(select autoid from rdsz) delete from rdrecord where id in(select id from rdsz) drop table rdsz 【注意事项】修改前请务必做好数据备份;可在测试环境下先行引入用户数据后打补丁测试验证 |
相关补丁: | |
版本: | 8.72sp1 |
模块: | 库存管理 |
产品: | 供应链 |
问题名称: | 威卡威—库存问题 |
最后更新: | 2012-01-26 23:56:21 |