入库回退后反写入库单

This commit is contained in:
18942506660
2024-08-01 10:20:52 +08:00
parent 0fe5c20eff
commit a93a1585f0
7 changed files with 55 additions and 2 deletions

View File

@@ -501,5 +501,13 @@ namespace WMS.Web.Repositories
.SelectMany(x => x.orders.DefaultIfEmpty(), (p, order) => new { p.detail, order })
.Where(x => boxIds.Contains(x.detail.BoxId) && x.order.Type != InstockType.Purchase).Select(s => s.detail.BoxId).ToListAsync();
}
public async Task<List<InStockDetails>> GetListBy(List<int> boxIds)
{
var entitys = await _context.InStockDetails.AsNoTracking()
.Where(x => boxIds.Contains(x.BoxId) && (x.UnBind == null || x.UnBind == false))
.ToListAsync();
return entitys;
}
}
}