修改了入库

This commit is contained in:
2025-07-17 15:58:08 +08:00
parent 3ae1d42bcd
commit e0d44c9e57
2 changed files with 8 additions and 8 deletions

View File

@@ -638,14 +638,14 @@ namespace WMS.Web.Domain.Services
order.Status = InstockStatus.Wait; order.Status = InstockStatus.Wait;
else if (details_Groups.Sum(x => x.RealityQtyTotal) <= 0) else if (details_Groups.Sum(x => x.RealityQtyTotal) <= 0)
{ {
if (order.Type == InstockType.ProduceSotck) //if (order.Type == InstockType.ProduceSotck)
{ // {
order.Status = InstockStatus.Wait; // order.Status = InstockStatus.Wait;
} // }
else // else
{ // {
order.Status = InstockStatus.WaitInStock; order.Status = InstockStatus.WaitInStock;
} //}
} }
else if (details_Groups.Sum(x => x.RealityQtyTotal) >= details_Groups.Sum(x => x.AccruedQtyTotal)) else if (details_Groups.Sum(x => x.RealityQtyTotal) >= details_Groups.Sum(x => x.AccruedQtyTotal))
order.Status = InstockStatus.Already; order.Status = InstockStatus.Already;

View File

@@ -515,7 +515,7 @@ namespace WMS.Web.Repositories
//这里只查状态为:部分入库和等待收货 //这里只查状态为:部分入库和等待收货
var task_query = _context.InStockTask var task_query = _context.InStockTask
.Where(w => EF.Functions.Like(w.SourceBillNo, "%" + dto.SourceBillNo + "%") && w.Type != InstockType.Purchase && (w.Status == InstockStatus.Part || w.Status == InstockStatus.Wait || w.Status == InstockStatus.WaitInStock)); .Where(w => EF.Functions.Like(w.SourceBillNo, "%" + dto.SourceBillNo + "%") && w.Type != InstockType.Purchase && w.Type!=InstockType.ProduceSotck && (w.Status == InstockStatus.Part || w.Status == InstockStatus.Wait || w.Status == InstockStatus.WaitInStock));
//找到头列表 //找到头列表
var taskList = await task_query var taskList = await task_query