Browse Source

非生产领退料修改

dev_DY_CC
lvzb 11 months ago
parent
commit
cfe5f8edd5
  1. 7
      be/Modules/Inventory/src/Win_in.Sfs.Wms.Inventory.Domain/Balances/BalanceManager.cs
  2. 2
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Transactions/NoOkConvertOKNoteEventHandler.cs

7
be/Modules/Inventory/src/Win_in.Sfs.Wms.Inventory.Domain/Balances/BalanceManager.cs

@ -560,16 +560,15 @@ public class BalanceManager : DomainService, IBalanceManager
.GroupBy(p => p.ContainerCode) .GroupBy(p => p.ContainerCode)
.Select(d => d.Key) .Select(d => d.Key)
.ToListAsync().ConfigureAwait(false); .ToListAsync().ConfigureAwait(false);
usableBalances= usableBalances
usableBalances
//扣减已占用库存 //扣减已占用库存
.DecreaseExpectOutQty(expectOuts, locations) .DecreaseExpectOutQty(expectOuts, locations)
//去除不可拆箱 拆托的且有预占用的库存余额 //去除不可拆箱 拆托的且有预占用的库存余额
.IgnoreExpectOutOfSameContainer(expectOutContainerCodes, itemStoreRelationDict, locations) .IgnoreExpectOutOfSameContainer(expectOutContainerCodes, itemStoreRelationDict, locations)
//过滤掉不允许拣料的库位 //过滤掉不允许拣料的库位
.FilterLocationEnablePickAsync(locations) .FilterLocationEnablePickAsync(locations)
//排序库存余额 最终可用的余额集合 //排序库存余额 最终可用的余额集合
.SortByFifo(); .SortByFifo();
LogDebug(traceId, usableBalances, "AvailableBalances"); LogDebug(traceId, usableBalances, "AvailableBalances");

2
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Transactions/NoOkConvertOKNoteEventHandler.cs

@ -58,7 +58,7 @@ public class NoOkConvertOkNoteEventHandler
transferLog.TransType = TransType; transferLog.TransType = TransType;
transferLog.ToLocationCode = locationInfo.Code; transferLog.ToLocationCode = locationInfo.Code;
transferLog.FromLocationArea = locationInfo.AreaCode; transferLog.ToLocationArea = locationInfo.AreaCode;
transferLog.ToLocationErpCode = locationInfo.ErpLocationCode; transferLog.ToLocationErpCode = locationInfo.ErpLocationCode;
transferLog.ToLocationGroup = locationInfo.LocationGroupCode; transferLog.ToLocationGroup = locationInfo.LocationGroupCode;
transferLog.ToStatus = EnumInventoryStatus.OK; transferLog.ToStatus = EnumInventoryStatus.OK;

Loading…
Cancel
Save