同步优化

This commit is contained in:
tongfei
2023-12-22 13:59:44 +08:00
parent e7c0f78751
commit 2184ff33f7
3 changed files with 47 additions and 27 deletions

View File

@@ -93,6 +93,15 @@ namespace WMS.Web.Domain.Entitys
{
this.CreatorId = creatorId;
this.CreateTime = DateTime.Now;
if (this.Type == InstockType.Purchase)
{
//只有采购订单入库才需要同步金蝶:单据头为同步中默认
this.SuccessSync = SyncStatus.SyncIng;
//erp明细为失败默认在处理同步时能找到该明细
this.ErpDetails.ForEach(f => f.SuccessSync = SyncStatus.Fail);
}
else//非采购订单这里就没有记录erpdetails的数据了
this.SuccessSync = SyncStatus.Success;
}
/// <summary>