diff --git a/ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs b/ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs index fa1adb3a..c436b501 100644 --- a/ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs +++ b/ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs @@ -2500,7 +2500,7 @@ namespace Tnb.ProductionMgr .ToListAsync(); List erpExtendIds = new List(); - erpExtendIds.Add(_userManager.UserId); + erpExtendIds.Add(report.create_id); erpExtendIds.Add(WmsWareHouseConst.AdministratorOrgId); erpExtendIds.Add(report.material_id); // erpExtendIds.Add(report.unit_id); @@ -2508,7 +2508,7 @@ namespace Tnb.ProductionMgr List erpExtendFields = await _db.Queryable() .Where(x => erpExtendIds.Contains(x.table_id)).ToListAsync(); - string erpCreateId = erpExtendFields.Find(x => x.table_id == _userManager.UserId)?.user_id ?? ""; + string erpCreateId = erpExtendFields.Find(x => x.table_id == report.create_id)?.user_id ?? ""; ErpExtendField erpOrg = erpExtendFields.Find(x => x.table_id == (WmsWareHouseConst.AdministratorOrgId)); string nowStr = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");