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