用友软件免费下载(www.bbsufida.com)旨在提供全系列最新最全的用友财务软件免费下载地址,快速下载请添加微信 yyrjgls

年结供应链时出错,没办法年结!!!-用友U8

admin2016-06-20412用友U8存货计量单位记录
对应版本:用友U8.61对应产品线:公共平台对应模块:系统管理模块问题现象:年结供应链时出错,没办法年结问题原因:同解决方案解决方案:您好:使用前请备份数据,您的数据无法结转成功是两个原因造成的。1、固定计量单位的存货收发记录子表中有inum为空的记录2、固定计量单位的存货存货档案的库存辅助默认计量单位为空。原因是您使用快速实施工具导入时未导入辅助默认计量单位。解决方法:useufdata_888_2005/*1、查询收发记录中某存货有固定换算率,但rdrecrods表中件数inum是null的记录。*/selectigrouptype,b.ccomunitcode,cstcomunitcode,cassunit,ichangrate,a.*fromrdrecordsajoininventorybon.a.cinvcode=b.cinvcodejoincomputationunitcona.cassunit=c.ccomunitcodewhereigrouptype=1andinumisnull/*2、将查询出来的记录的件数inum更新为数量iquantity*换算率ichangrate。*/updateaseta.inum=a.iquantity/c.ichangratefromrdrecordsajoininventorybon.a.cinvcode=b.cinvcodejoincomputationunitcona.cassunit=c.ccomunitcodewhereigrouptype=1andinumisnull/*3、再件数inum四舍五入更新两位小数*/updaterdrecordssetinum=round(inum,2)fromrdrecordswhereabs(isnull(inum,0))0/*5、将查询出来的存货档案的默认库存辅助计量单位cstcomunitcode修改为主计量单位,!!!!!!!!1!!!这些记录然需要客户在2006年的账套中调整。!!!!!!!!!*/updateinventorysetcstcomunitcode=ccomunitcodefrominventorywherecstcomunitcodeisnullandigrouptype0/*6、结转*/

微信号:yyrjlls
技术咨询,有偿服务!
复制微信号

本文链接:https://www.bbsufida.com/u8/44897.html

热门文章
侧栏广告位
随机文章