同步优化
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user