移箱增加仓库

This commit is contained in:
18942506660
2023-11-17 09:55:55 +08:00
parent e41f1b16aa
commit 1187141809
3 changed files with 15 additions and 4 deletions

View File

@@ -139,7 +139,7 @@ namespace WMS.Web.Domain.Services
foreach (var d in dto)
{
var entity = new MoveBoxRecord();
entity.Create(IsUp == true ? MoveBoxType.Up : MoveBoxType.Down, d.BoxId, d.SubStockId, loginInfo.UserInfo.StaffId);
entity.Create(IsUp == true ? MoveBoxType.Up : MoveBoxType.Down, d.BoxId, d.StockCode, d.SubStockId, loginInfo.UserInfo.StaffId);
entityList.Add(entity);
}
var inventoryList = dto.Select(s => new BoxInventoryMoveGenerateDto()
@@ -147,7 +147,7 @@ namespace WMS.Web.Domain.Services
BoxId = s.BoxId,
SubStockId = s.SubStockId,
InventoryInOutType = IsUp == true ? 1 : 2,
StockCode=s.StockCode
StockCode = s.StockCode
}).ToList();
IDbContextTransaction _transaction = _transactionRepositories.GetTransaction();