模拟报价单材料单价取数问题
1人赞赏了该文章
430次浏览
编辑于2017年11月17日 13:50:29
K3WISE 14.3 模拟报价取数时设置为最新入库价,但是系统最后取得价格不对,跟踪后台得到如下语句,
Select Top 1 FPrice,* from icstockbill t1 INNER JOIN ICStockBillEntry t2 on t1.fInterID=t2.FInterID
where t2.fItemID=2804 and t1.FTrantype=1 and t1.Frob=1 and t1.Fstatus=1
order by Fdate desc
系统只取了审核状态的的外购入库单的最新单价,如果外购入库单已经钩稽,Fstatus状态值为3,就没办法取到最新入库价,请教该怎么办?
Select Top 1 FPrice,* from icstockbill t1 INNER JOIN ICStockBillEntry t2 on t1.fInterID=t2.FInterID
where t2.fItemID=2804 and t1.FTrantype=1 and t1.Frob=1 and t1.Fstatus=1
order by Fdate desc
系统只取了审核状态的的外购入库单的最新单价,如果外购入库单已经钩稽,Fstatus状态值为3,就没办法取到最新入库价,请教该怎么办?
推荐阅读