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

批次结存表数量为零件数不为零依然显示-用友T3

admin2016-04-19312用友T3件数数量为零

批次结存表数量为零件数不为零依然显示

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

原因分析:这种现象是由于换算率不为整数,在数量与件数的计算中形成尾差,在当前版本中,如果启用批次合并状态,当主计量与辅计量单位一方不为零时,也认为此批次没有出空。

问题解答:如希望数量为零件数不为零的不再显示,可从数据库中修改,参考语句:此语句正确生效的前提条件为帐套为固定换算率。1、依据累计出库数量修改累计出库件数,然件数与数量同步:update rdrecords set isoutNum = isoutquantity/iInvExChRatefrom MainBatch INNER JOIN RdRecords ON dbo.MainBatch.RdID = RdRecords.AutoID where rdrecords.iNum <> 0 and rdrecords.isoutquantity <> 0 and isoutNum<>(isoutquantity/iInvExChRate)2、更新mainbatch表----没有出完,但是isnull 已经置为1,置回0update UFDATA_010_2009..mainbatchset bisnull = 0where bisnull = 1 and rdid in(select autoid from UFDATA_010_2009..rdrecords rds inner join UFDATA_010_2009..rdrecord rd on rds.id = rd.id where ((brdflag = 1 and iquantity > 0) or (brdflag = 0 and iquantity < 0)) and (round(abs(isnull(rds.iquantity,0)) - abs(isnull(rds.isoutquantity,0)),6) >0) )----已经出完,但是isnull 已经置为0,置回1update UFDATA_010_2009..mainbatchset bisnull = 1where bisnull = 0 and rdid in(select autoid from UFDATA_010_2009..rdrecords rds inner join UFDATA_010_2009..rdrecord rd on rds.id = rd.id where ((brdflag = 1 and iquantity > 0) or (brdflag = 0 and iquantity < 0)) and (round(abs(isnull(rds.isoutquantity,0)) - abs(isnull(rds.iquantity,0)),6) >=0) )

本文链接:https://www.bbsufida.com/t3/23022.html

网友评论

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