修复bug
This commit is contained in:
Binary file not shown.
@@ -140,7 +140,12 @@ namespace WMS.Web.Domain.Entitys
|
||||
/// </summary>
|
||||
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;
|
||||
else
|
||||
this.Status = OutStockStatus.Part;
|
||||
|
||||
Reference in New Issue
Block a user