修复bug
This commit is contained in:
@@ -97,8 +97,16 @@ namespace WMS.Web.Domain.Entitys
|
|||||||
this.ReceiptCustomerId = task.ReceiptCustomerId;
|
this.ReceiptCustomerId = task.ReceiptCustomerId;
|
||||||
this.CreatorId = creatorId;
|
this.CreatorId = creatorId;
|
||||||
this.CreateTime = DateTime.Now;
|
this.CreateTime = DateTime.Now;
|
||||||
this.SuccessSync = false;
|
if (task.Type == OutStockType.Sal)
|
||||||
this.SuccessSyncFail = this.Details.SelectMany(s => s.ErpDetails).GroupBy(g => g.SourceBillNo).Select(s=>s.Key).ToList();
|
{
|
||||||
|
//只有销售出库才需要同步金蝶
|
||||||
|
this.SuccessSync = false;
|
||||||
|
this.SuccessSyncFail = this.Details.SelectMany(s => s.ErpDetails).GroupBy(g => g.SourceBillNo).Select(s => s.Key).ToList();
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
this.SuccessSync = true;
|
||||||
|
this.SuccessSyncFail = new List<string>();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 同步金蝶(成功)
|
/// 同步金蝶(成功)
|
||||||
|
|||||||
Reference in New Issue
Block a user