1、库存不足原因查询

背景简介

重药物流WMS2.0 在传输订单到达的时候,会分配 WMS库存,有时候会分配失败,提示库存不足,原因有可能是 重发下单占用了库存 。

涉及系统

SCM    英克WMS(2.0

1、SCM,报告所未解锁

2、可用库存不足

3、品质对不上

4、批次ID,批次号对不上

货主,库存不足



--清理占用库存
--先在6508中 按仓库 货主ID,货品SKU,批号,批次找出 占用的库存,然后查询出来相关的ID,,去删除tpl_st_io_doc_tmp 表的数据
SELECT A.ownergoodsid,A.goodsid,A.goodsstatusid,A.lotid,A.batchid, A.*,A.rowid FROM tpl_st_qty_lst_v A WHERE 1=1
AND warehid='301'
AND goodsownerid='583'
AND goodsownid ='SF19425001000900'
and lotno='220110'
and batchno='2204Y7GH00EV'
;  

select t.*,t.rowid  from tpl_st_io_doc_tmp t where 1=1
and t.warehid=301
and t.goodsownerid='586'
and t.ownergoodsid=523447
and t.goodsid=264908
and t.goodsstatusid=1
and t.lotid=777281
and t.batchid=902172
and t.inoutflag=1
文档更新时间: 2023-09-01 14:41   作者:周骏