bug
This commit is contained in:
@@ -1032,7 +1032,7 @@ namespace Tnb.WarehouseMgr
|
||||
List<WmsMaterialTransferD> dList = await _db.Queryable<WmsMaterialTransferD>().Where(x => x.bill_id == wmsMaterialTransferd.bill_id).OrderBy(x => x.id).ToListAsync();
|
||||
DictionaryDataEntity unitData = await _db.Queryable<DictionaryTypeEntity>()
|
||||
.LeftJoin<DictionaryDataEntity>((x, y) => x.Id == y.DictionaryTypeId)
|
||||
.Where((x, y) => x.EnCode == DictConst.MeasurementUnit && y.EnCode == wmsMaterialTransferd.unit_id)
|
||||
.Where((x, y) => x.EnCode == DictConst.MeasurementUnit && (y.EnCode == wmsMaterialTransferd.unit_id || y.Id==wmsMaterialTransferd.unit_id))
|
||||
.Select((x, y) => y)
|
||||
.FirstAsync();
|
||||
string unitId = unitData?.Id ?? "";
|
||||
|
||||
Reference in New Issue
Block a user