bug
This commit is contained in:
@@ -406,12 +406,7 @@ namespace Tnb.ProductionMgr
|
||||
List<PrdMaterialReceiptH> insertHList = new List<PrdMaterialReceiptH>();
|
||||
List<PrdMaterialReceiptD> insertDList = new List<PrdMaterialReceiptD>();
|
||||
string orgId = WmsWareHouseConst.AdministratorOrgId;
|
||||
string userId = WmsWareHouseConst.AdministratorUserId;
|
||||
if (_userManager != null && _userManager.GetUserInfo() != null && _userManager.GetUserInfo().Result!=null)
|
||||
{
|
||||
orgId = _userManager.GetUserInfo().Result.organizeId;
|
||||
userId = _userManager.UserId;
|
||||
}
|
||||
string userId = moTask.worker_id;
|
||||
foreach(string carryId in input.carryIds)
|
||||
{
|
||||
WmsCarryH carry = await db.Queryable<WmsCarryH>().SingleAsync(x => x.id == carryId);
|
||||
|
||||
@@ -74,8 +74,6 @@ namespace Tnb.WarehouseMgr
|
||||
}
|
||||
|
||||
CarryQueryOutput data = new();
|
||||
try
|
||||
{
|
||||
WmsCarryH carry = await _db.Queryable<WmsCarryH>().FirstAsync(a => a.carry_code == input.carry_code && a.status == 1);
|
||||
if (carry.IsNull())
|
||||
{
|
||||
@@ -117,12 +115,6 @@ namespace Tnb.WarehouseMgr
|
||||
}
|
||||
data = carry.Adapt<CarryQueryOutput>();
|
||||
data.wmsCarryCodes = carryCodes.Adapt<List<CarryCodeQueryOutput>>();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
await _db.Ado.RollbackTranAsync();
|
||||
throw;
|
||||
}
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user