Merge branch 'master' of https://codeup.aliyun.com/62ce7bca487c500c27f70a79/OPS/WMS-Api
This commit is contained in:
Binary file not shown.
@@ -77,7 +77,7 @@ namespace WMS.Web.Domain.Entitys
|
|||||||
/// 明细
|
/// 明细
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public List<OutStockTaskDetails> Details = new List<OutStockTaskDetails>();
|
public List<OutStockTaskDetails> Details = new List<OutStockTaskDetails>();
|
||||||
public void Create(OutStockType type,string stockCode,string orgCode, int deliveryOrgId, int receiptCustomerId, DateTime createTime)
|
public void Create(OutStockType type, string stockCode, string orgCode, int deliveryOrgId, int receiptCustomerId, DateTime createTime)
|
||||||
{
|
{
|
||||||
this.Type = type;
|
this.Type = type;
|
||||||
this.StockCode = stockCode;
|
this.StockCode = stockCode;
|
||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user