打开帐面库存报表提示“主键,单号,编码相
A问题解答
出现这个问题的原因是因为某个货品有两个基本单位,处理方法先用以下语句进行查询:select * from goodsunit where rate=1 and unittype=0 and goodsid in(select goodsid from goodsunit group by goodsid having count(*)>1) order by unitid,如存在返回记录,找到对应货品,打开表goodsunit字段unittype,这个字段0就是代表基本单位,-1就代表业务单位。最后找出