为了正常的体验网站,请在浏览器设置里面开启Javascript功能!

年结数据不一致问题

2017-11-26 3页 doc 13KB 16阅读

用户头像

is_729658

暂无简介

举报
年结数据不一致问题年结数据不一致问题 库存年度结转后年初数与去年年末数不符 问题名称 库存年度结转后年初数与去年年末数不符 问题现象 启用库存与存货两模块,库存结转至06年后,2006期初数与2005年度帐中收发存期末结 存数不一致 问题原因 由于在12月月末结帐时,存在未审核单据,直接使用 update 语句对rdrecord的审核人 chandler进行更新造成的。 但是,只更新了chanler字段,其中审核日期(dveridate) 依然为null值。在结转前又没有重新整理现存量造成的。结转后的差值就是这部分的数量, 可以...
年结数据不一致问题
年结数据不一致问题 库存年度结转后年初数与去年年末数不符 问题名称 库存年度结转后年初数与去年年末数不符 问题现象 启用库存与存货两模块,库存结转至06年后,2006期初数与2005年度帐中收发存期末结 存数不一致 问题原因 由于在12月月末结帐时,存在未审核单据,直接使用 update 语句对rdrecord的审核人 chandler进行更新造成的。 但是,只更新了chanler字段,其中审核日期(dveridate) 依然为null值。在结转前又没有重新整理现存量造成的。结转后的差值就是这部分的数量, 可以通过如下语句查询: select cwhcode,cinvcode,cbatch,sum(case when brdflag=1 then iquantity else -iquantity end) as i--dveridate,autoid,brdflag,cvouchtype,cwhcode,cinvcode,cbatch,iquantity,isoutquantity,* --into #temlwb from rdrecord a join rdrecords b on a.id=b.id where dveridate is null and chandler is not null and cbustype<>'假退料' group by cwhcode,cinvcode,cbatch 解决 由于在12月月末结帐时,存在未审核单据,直接使用 update 语句对rdrecord的审核人 chandler进行更新造成的。 但是,只更新了chanler字段,其中审核日期(dveridate) 依然为null值。在结转前又没有重新整理现存量造成的。结转后的差值就是这部分的数量, 可以通过如下语句查询: select cwhcode,cinvcode,cbatch,sum(case when brdflag=1 then iquantity else -iquantity end) as i--dveridate,autoid,brdflag,cvouchtype,cwhcode,cinvcode,cbatch,iquantity,isoutquantity,* --into #temlwb from rdrecord a join rdrecords b on a.id=b.id where dveridate is null and chandler is not null and cbustype<>'假退料' group by cwhcode,cinvcode,cbatch 由于用户数据采用的是审核时更改现存量的方式,且仓库都存在货位管理,这样结转下来的 数据中的货位表也是混乱的。 建议,通过在2005年度中,将属于如下范围的数据进行修改: select dveridate,chandler,* from rdrecord where isnull(Rdrecord.dveridate,'')='' and chandler is not null and cbustype<>'假退料' 修改语句如下: update rdrecord set chandler=null where isnull(Rdrecord.dveridate,'')='' and chandler is not null and cbustype<>'假退料' 之后,进行在2005年的软件中,审核单据,有货位要求的指定货位。 然后整理现存量。重新进行年度结转。
/
本文档为【年结数据不一致问题】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。 本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。 网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。

历史搜索

    清空历史搜索