出入库单判定依据调整

This commit is contained in:
2026-01-17 13:26:48 +08:00
parent d33966dfea
commit a587c39f70
2 changed files with 11 additions and 3 deletions

View File

@@ -210,14 +210,13 @@ namespace DOAN.Service.BZFM
// 启用事务
Context.Ado.BeginTran();
// 获取现有库存(同物料、批次、库位、供应商
// 获取现有库存(同物料、批次、库位)
var mmInventory = Context
.Queryable<MmInventory>()
.Where(it => it.MaterialCode == parm.MaterialCode)
.Where(it => it.BatchNo == parm.BatchNo)
.Where(it => it.WarehouseCode == parm.WarehouseCode)
.Where(it => it.LocationCode == parm.LocationCode)
.Where(it => it.SupplierCode == parm.SupplierCode)
.First();
// 若不存在则新增;存在则更新