|
@ -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"); |
|
|
|
|
|
|
|
|