修复bug

This commit is contained in:
18942506660
2023-12-05 09:17:08 +08:00
parent 6d90efb5d6
commit 287ce5acaa
2 changed files with 7 additions and 2 deletions

View File

@@ -140,7 +140,12 @@ namespace WMS.Web.Domain.Entitys
/// </summary> /// </summary>
public void GenerateStatus() public void GenerateStatus()
{ {
if (this.Details.Where(w => w.RealityQty >= w.AccruedQty).Count() == this.Details.Count()) if (this.Status == OutStockStatus.Repeal)
return;
if (this.Details.Where(w => w.RealityQty <= 0).Count() == this.Details.Count())
this.Status = OutStockStatus.Wait;
else if (this.Details.Where(w => w.RealityQty >= w.AccruedQty).Count() == this.Details.Count())
this.Status = OutStockStatus.Already; this.Status = OutStockStatus.Already;
else else
this.Status = OutStockStatus.Part; this.Status = OutStockStatus.Part;