diff --git a/src/WMS.Web.Domain/Services/InStockTaskService.cs b/src/WMS.Web.Domain/Services/InStockTaskService.cs index ecfad986..7b3cf3e3 100644 --- a/src/WMS.Web.Domain/Services/InStockTaskService.cs +++ b/src/WMS.Web.Domain/Services/InStockTaskService.cs @@ -632,7 +632,16 @@ namespace WMS.Web.Domain.Services else if (details_Groups.Sum(x => x.ReceiveQtyTotal) <= 0 && order.Type == InstockType.Purchase) order.Status = InstockStatus.Wait; else if (details_Groups.Sum(x => x.RealityQtyTotal) <= 0) - order.Status = InstockStatus.WaitInStock; + { + if (order.Type == InstockType.ProduceSotck) + { + order.Status = InstockStatus.Wait; + } + else + { + order.Status = InstockStatus.WaitInStock; + } + } else if (details_Groups.Sum(x => x.RealityQtyTotal) >= details_Groups.Sum(x => x.AccruedQtyTotal)) order.Status = InstockStatus.Already;