Browse Source

非生产领退料修改

dev_DY_CC
lvzb 11 months ago
parent
commit
cfe5f8edd5
  1. 3
      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

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

@ -560,8 +560,7 @@ 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)
//去除不可拆箱 拆托的且有预占用的库存余额 //去除不可拆箱 拆托的且有预占用的库存余额

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