修复bug

This commit is contained in:
18942506660
2023-11-17 17:12:53 +08:00
parent 943a5e7cac
commit bab90b94f8

View File

@@ -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>
/// 同步金蝶(成功)