调拨单取消接口
2023-02-09 14:30:02 1 举报
调拨单取消流程
作者其他创作
大纲/内容
TransferStatus==ACCEPTED&sourceWarehouseType==shop
1
CollectionUtils.isEmpty(asnList) || asnList.size() > 1
true
释放库存占用Stock/SoStock/UpdateSoProductBatchStatus
false
释放库位库存占用(yewu-wms-storagecenter-storageservice:storagecenter/storage/releaseSoStorages)
修改调拨单状态为取消 cancelTransfer()
TransferStatus==sent
校验操作人
!responseCancel.isCanCancel()&responseCancel.getMessage()!=出库单不存在
false:正常取消
取消调拨单 cancelTransfer()
TranferType=Receipted||PartialReceipted||Canceled(已完成,部分收货,已取消)
sourceWarehouseType==shop
查出库单是否可取消,可取消表示“拣货前”状态,不可取消表示“待拣货(拣货中)”状态
responseCancel=/outBound/queryOutBoundTaskCanCancel
查询AsnType=Transfer&Status=新建的asnListwms/inbound/asn/queryASNByAsnNo
TransferStatus=ACCEPTED
调拨单取消
2
走1分支过滤部分不能取消
发送取消库存占用同步MQexchange:yw.wms.topicroutingKey:WMS.Outside.Transfer.CancelWarehouseTransfer
true:强制取消
boolean forced
通知TMSdeliveryPackage/cancelPackage
TranferType==None
TranferType=DefectiveProduct&TransferStatus=new
warehouseType==TIRE||MAINTENANCE||SHOP||DULICANG
开始取消
已经接受的移库任务取消出库任务计划WMS/OutBound/OutBound/CancelOutBoundTask
0 条评论
下一页