解决方案: |
--更改红字的销售出库单,从821升级以后的库存期初标志错误的问题.应该为0. update rdrecord set bisstqc=0 from rdrecord join rdrecords on rdrecord.id=rdrecords.id where cvouchtype='32'and bisstqc=1 --在821的数据下,库存总帐的年初数据是正确的,将其生成临时表 temstqc select * into temstqc from st_totalaccount where imonth=1 and ibeginquantity<>0 /* 之后,将821下的临时表 temstqc 导入860sp环境下,使在升级后的860sp数据中根据 temstqc 的正确的期初数进行调整 */ --更新升级后的库存期初结存数不正确的数据 update rdrecords set rdrecords.iquantity=temstqc.ibeginquantity from rdrecord join rdrecords on rdrecord.id=rdrecords.id join temstqc on (rdrecord.cwhcode=temstqc.cwhcode and rdrecords.cinvcode=temstqc.cinvcode) where cvouchtype='34'and cmemo='850补丁调整工具调整数据'and rdrecords.iquantity<>temstqc.ibeginquantity |