bug
This commit is contained in:
@@ -132,6 +132,7 @@ namespace Tnb.WarehouseMgr
|
||||
string supplierId = wmsPurchaseOrderH?.supplier_id ?? "";
|
||||
List<string> tableIds = new List<string>();
|
||||
tableIds.Add(_userManager.UserId);
|
||||
tableIds.Add(wmsPurchaseH.create_id);
|
||||
tableIds.Add(WmsWareHouseConst.AdministratorOrgId);
|
||||
tableIds.Add(instock.warehouse_id);
|
||||
tableIds.AddRange(materialIds);
|
||||
@@ -140,7 +141,7 @@ namespace Tnb.WarehouseMgr
|
||||
tableIds.AddRange(unitDatas.Select(x => x.Id).ToList());
|
||||
|
||||
List<ErpExtendField> erpExtendFields = await _db.Queryable<ErpExtendField>().Where(x => tableIds.Contains(x.table_id)).ToListAsync();
|
||||
string erpCreateId = erpExtendFields.Find(x => x.table_id == instock.create_id)?.user_id ?? "";
|
||||
string erpCreateId = erpExtendFields.Find(x => x.table_id == wmsPurchaseH.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");
|
||||
|
||||
@@ -178,8 +179,8 @@ namespace Tnb.WarehouseMgr
|
||||
["cbodytranstypecode"] = erpExtendFields.Find(x => x.table_id == tranTypeId)?.transaction_type_id ?? "",
|
||||
// ["cbodywarehouseid"] = erpExtendFields.Find(x => x.table_id == instock.warehouse_id)?.cotherwhid ?? "",
|
||||
["cbodywarehouseid"] = erpWarehouserelaHs.Find(x => x.erp_warehousecode == basWarehouse.whcode)?.erp_warehouseid ?? "",
|
||||
["cgeneralbid"] = "",
|
||||
["cgeneralhid"] = "",
|
||||
["cgeneralbid"] = null,
|
||||
["cgeneralhid"] = null,
|
||||
["cmaterialoid"] = erpExtendFields.Find(x => x.table_id == item.material_id)?.cmaterialoid ?? "",
|
||||
["cmaterialvid"] = erpExtendFields.Find(x => x.table_id == item.material_id)?.cmaterialvid ?? "",
|
||||
["corpoid"] = erpOrg.corpoid,
|
||||
|
||||
Reference in New Issue
Block a user