改了待收货

This commit is contained in:
2025-07-05 14:06:03 +08:00
parent 7735199678
commit c9b239545b

View File

@@ -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)
{
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;