问题现象: |
在《销售管理》,查询存货编码=8600000301的现存量时,发现待发货量为148.655,件数为65件,在《库存管理》中进行现存量整理后,数量变为121.211,件数变为53件,但是查询不到待发货量的来源,所有发货单均已审核。 |
问题原因: |
关于待发货问题,用户的销售出库单是在库存生成的,待发货数量存在是因为有没有出库的发货单。 select cwhcode,sum(iquantity),sum(inum) from dispatchlist a inner join dispatchlists b on a.dlid=b.dlid where csaleout is null and b.cinvcode ='8600000301' and ccloser is null and bFirst<>1 group by cwhcode |
解决方案: |
关于待发货问题,您可以先用以下语句进行查看:待发货数量存在是因为有没有出库的单据。 select cwhcode,sum(iquantity),sum(inum) from dispatchlist a inner join dispatchlists b on a.dlid=b.dlid where csaleout is null and b.cinvcode ='8600000301' and ccloser is null and bFirst<>1 group by cwhcode 正好是系统显示的数量,数据是没有错误的。 |
相关补丁: |
|
版本: |
8.60 |
模块: |
销售管理 |
产品: |
U860----销售管理 |
问题名称: |
销售现存量查询 |
最后更新: |
2005-07-05 00:00:00 |