看看通过查询分析工具,直接用SQL写一个查看即时库存的数据,按照想要的列排序,顺序一次设计好后面就不需要调整了。
select b.FNumber as 物料编码 , b.Fname as 物料名称 , FQty as 即时库存 ,t_stock.FName as 仓库名称 , t_MeasureUnit.fname as 计量单位名称 from ICInventory a
left join t_ICItem b on a.FItemID = b.FItemID
left join t_stock on t_stock.FItemID=a.FStockID
left join t_MeasureUnit on t_MeasureUnit.FUnitGroupID=b.FUnitGroupID
where FQty<>0
order by t_stock.FName