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

存货中暂估入库余额表报销金额错误-用友U8

admin2016-06-20364用友U8金额结算存货
对应版本:用友U8.52对应产品线:供应链对应模块:存货核算模块问题现象:用户使用计划价核算,暂估方式为单到回冲,在9-10月份采购结算后,发现存货暂估余额表中的报销金额是实际金额而非计划价!但是,存货明细帐上显示的红蓝回冲单都是计划价!检查后发现,入库单上暂估金额为0,当采购结算时,将发票金额回写到暂估金额上了!现在,已经将库存选项中入库单自动代出选中,再做业务没有此问题。但是,以前的单据不知道怎么办?能不能直接修改入库单上的暂估单价!问题原因:通过数据库中察看,跨月暂估的采购入库单在存货明细账中的暂估金额与收发记录主子表中的暂估金额一致,而且完全结算的入库单在收发记录主子表中暂估金额与结算暂估金额一致,只有结算单表中的结算暂估金额不正确,其并不影响存货明细账解决方案:可以使用附件中的更改语句在查询分析器中针对数据帐套执行,以进行更改--更改updatebsetiaprice=convert(decimal(20,2),isnull(iaprice,0))fromrdrecordainnerjoinrdrecordsbona.id=b.idwherecvouchtype=’01’andisnull(iaprice,0)0updatebsetiunitcost=convert(decimal(20,2),isnull(iprice,0))/iquantityfromrdrecordainnerjoinrdrecordsbona.id=b.idwherecvouchtype=’01’andiapriceisnotnullandcaccounterisnotnullandiunitcostisnullandisnull(iprice,0)0andisnull(iquantity,0)0updatebsetfacost=iunitcostfromrdrecordainnerjoinrdrecordsbona.id=b.idwherecvouchtype=’01’andiapriceisnotnullandcaccounterisnotnullandfacostisnullandisnull(iprice,0)=isnull(iaprice,0)updatebsetfacost=convert(decimal(20,2),isnull(iaprice,0))/iquantityfromrdrecordainnerjoinrdrecordsbona.id=b.idwherecvouchtype=’01’andiapriceisnotnullandcaccounterisnotnullandfacostisnullandisnull(iprice,0)isnull(iaprice,0)andisnull(iquantity,0)0updateasetisvacost=b.facostfrompursettlevouchsaleftjoinrdrecordsbonb.autoid=a.irdsidupdateasetisvaprice=convert(decimal(20,2),isvquantity*isvacost)frompursettlevouchsaleftjoinrdrecordsbonb.autoid=a.irdsidwhereisnull(a.isvquantity,0)isnull(b.isquantity,0)updateasetisvaprice=convert(decimal(20,2),b.imoney)frompursettlevouchsaleftjoinrdrecordsbonb.autoid=a.irdsidwhereisnull(a.isvquantity,0)=isnull(b.isquantity,0)

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

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

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