|
问题现象:在用友8.50sperp系统中用友U8版本号:U8.50sp软件的供应链产品线存货核算模块出现如下问题:对某存货进行了计划价调整后,该存货在明细帐中,期初的单价也变成了调整后的单价了,并且结存的金额不等于数量*单价请帮忙解答!
原因分析:软件原因。
解决方案:在用友erp 系统版本U8.50sp软件中(1)请下载最新850存货核算补丁USEntQC.dll解决调整计划单价同时调整期初计划价的问题。(补丁时间:10月19日)(2)同时,请通过脚本将期初计划价调整回原始的计划价,同时会解决明细帐中结存单价*结存数量金额的问题。相关脚本如下:(1)--查询有类似问题的数据selecta.*,s.inum,s.imoney,costjustvouchs.icjvbcost,costjustvouchs.icjvacostfrom(selectcwhcode,cinvcode,sum(iainquantity)sq,sum(iainprice)spfromia_subsidiarywhereimonth=0andcvoutype='34'groupbycwhcode,cinvcodehavingcwhcodein(selectcwhcodefromwarehousewherecwhvaluestyle='计划价法'))aleftjoinia_summarysona.cwhcode=s.cwhcodeanda.cinvcode=s.cinvcodeands.imonth=0leftjoincostjustvouchsons.cinvcode=costjustvouchs.cinvcodewhereround(a.sq,8)round(s.inum,8)orround(a.sp,2)round(s.imoney,2)(2)--建立存储过程--@WhCode:仓库编码@InvCode:存货编码@PlanedPrice:要调整的单价createprocJustIAQCPPrice@WhCodevarchar(20),@InvCodevarchar(20),@PlanedPricedecimal(20,8)asupdateia_subsidiarysetiincost=@PlanedPrice,iainprice=@PlanedPrice*iainquantitywherecwhcode=@whcodeandcinvcode=@invcodeandimonth=0andcvoutype='34'andnotiainquantityisnullandiincost@PlanedPrice(3)执行存储过程:--输入要调整的仓库,存货,要调整的单价execJustIAQCPPrice@WhCode='01',@InvCode='0104017',@PlanedPrice='4.45'请参考上述方法进行测试解决,修改前请一定做好数据备份。
|
|