用友软件 发表于 2016-9-25 15:35:58

用友U8软件中在查找收发存汇总表时,发现查7至7月份与1至7月份的期未数不一致?

问题现象:在用友U8erp系统中用友U8版本号:U8软件的供应链产品线库存管理模块出现如下问题:在查找收发存汇总表时,发现查7至7月份与1至7月份的期未数不一致,检查数据库,发现ST_TotalAccount中相同存货从4月份开始重复(只是金额不一致),删除错误记录,查新查找数据正确。但由于存货有几千种,不可能一条条来删除,且需要计算才能分辨出错误记录。请集团编写语句帮忙来删除。请帮忙解答!
原因分析:ST_TotalAccount重复。
解决方案:在用友erp 系统版本U8软件中用以下语句删除错误记录:--4月份selectcwhcode,cinvcode,sum(casewhenbrdflag=1theniquantityelse-iquantityend)asquantityintosssfromrdrecordsainnerjoinrdrecordbona.id=b.idwhereddatesss.quantitywherest_totalaccount.imonth=4droptablesss--5月份selectcwhcode,cinvcode,sum(casewhenbrdflag=1theniquantityelse-iquantityend)asquantityintosssfromrdrecordsainnerjoinrdrecordbona.id=b.idwhereddatesss.quantitywherest_totalaccount.imonth=5droptablesss--6月份selectcwhcode,cinvcode,sum(casewhenbrdflag=1theniquantityelse-iquantityend)asquantityintosssfromrdrecordsainnerjoinrdrecordbona.id=b.idwhereddatesss.quantitywherest_totalaccount.imonth=6droptablesss--7月份selectcwhcode,cinvcode,sum(casewhenbrdflag=1theniquantityelse-iquantityend)asquantityintosssfromrdrecordsainnerjoinrdrecordbona.id=b.idwhereddatesss.quantitywherest_totalaccount.imonth=7droptablesss。

用友财务软件 发表于 2016-9-25 17:13:31

用友U8ERP软件免费下载地址截止2016年已发布的版本全部在下方,安装教程请认真参考:http://www.yyrjxz.com/xue/u8azjc.html 进行安装。
1、用友MERPu811软件免费下载地址:http://www.yyrjxz.com/yongyou/MERPU811.1.html
2、用友U82.0erp软件免费下载地址:http://www.yyrjxz.com/yongyouu8/u8old820.html
3、用友U83.0erp软件免费下载地址:http://www.yyrjxz.com/yongyouu8/u8old830.html
4、用友U852erp软件免费下载地址:http://www.yyrjxz.com/yongyouu8/U852.html
5、用友U860erp软件免费下载地址:http://www.yyrjxz.com/yongyouu8/u860.html
6、用友U861erp软件免费下载地址:http://www.yyrjxz.com/yongyouu8/u861xz.html
7、用友U870erp软件免费下载地址:http://www.yyrjxz.com/yongyouu8/u870.html
8、用友U872erp软件免费下载地址:http://www.yyrjxz.com/yongyouu8/u871.html
9、用友U82.0erp软件免费下载地址:http://www.yyrjxz.com/yongyouu8/U872.html
10、用友U890erp软件免费下载地址:http://www.yyrjxz.com/yongyouu8/u890.html
11、用友U810.0erp软件免费下载地址:http://www.yyrjxz.com/yongyouu8/U810.0.html
12、用友U810.1erp软件免费下载地址:http://www.yyrjxz.com/yongyouu8/U8V10.1.html
13、用友U811.0erp软件免费下载地址:http://www.yyrjxz.com/yongyouu8/U8V11.0.html
14、用友U8+v11.1erp软件免费下载地址:http://www.yyrjxz.com/yongyouu8/U8V11.1.html
15、用友U8+v12.0erp软件免费下载地址:http://www.yyrjxz.com/yongyouu8/u8120.html
16、用友U8+v12.1erp软件免费下载地址:http://www.yyrjxz.com/yongyouu8/u8121.html
17、用友U8+v12.5erp软件免费下载地址:http://www.yyrjxz.com/yongyouu8/u8125.html
页: [1]
查看完整版本: 用友U8软件中在查找收发存汇总表时,发现查7至7月份与1至7月份的期未数不一致?