|
@ -106,7 +106,9 @@ public class JitSeSyncAppService : ApplicationService, IInvocable |
|
|
await _syncPositionFlagRepository.InsertAsync(syncPositionFlag); |
|
|
await _syncPositionFlagRepository.InsertAsync(syncPositionFlag); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
pubSeDetails.ForEach(pubSeDetail => |
|
|
foreach (var pubSeDetail in pubSeDetails) |
|
|
|
|
|
{ |
|
|
|
|
|
if (pubSeDetail.TransType == EnumDelTransType.发货) |
|
|
{ |
|
|
{ |
|
|
var vmiBalance = new VmiBalance() |
|
|
var vmiBalance = new VmiBalance() |
|
|
{ |
|
|
{ |
|
@ -130,8 +132,35 @@ public class JitSeSyncAppService : ApplicationService, IInvocable |
|
|
RealCode = default, |
|
|
RealCode = default, |
|
|
ReMark = pubSeDetail.Remark, |
|
|
ReMark = pubSeDetail.Remark, |
|
|
}; |
|
|
}; |
|
|
_vmiService.In(logType: Vmi.VmiLogType.Type100, changedNumber: pubSeDetail.DnBillNum, data: vmiBalance); |
|
|
await _vmiService.In(logType: Vmi.VmiLogType.Type100, changedNumber: pubSeDetail.DnBillNum, data: vmiBalance); |
|
|
}); |
|
|
} |
|
|
|
|
|
else if (pubSeDetail.TransType == EnumDelTransType.退货) |
|
|
|
|
|
{ |
|
|
|
|
|
var vmiLog = new VmiLog() |
|
|
|
|
|
{ |
|
|
|
|
|
PartCode = pubSeDetail.PartCode, |
|
|
|
|
|
VinCode = pubSeDetail.PN, |
|
|
|
|
|
CustomerPartCode = default, |
|
|
|
|
|
CodeType = default, |
|
|
|
|
|
BillType = pubSeDetail.DeliverBillType, |
|
|
|
|
|
Qty = pubSeDetail.Qty, |
|
|
|
|
|
BillTime = pubSeDetail.BillTime, |
|
|
|
|
|
DeliverTime = pubSeDetail.DnBillTime, |
|
|
|
|
|
ErpToLoc = pubSeDetail.ToErpLocCode, |
|
|
|
|
|
Seq = default, |
|
|
|
|
|
OrderNum = pubSeDetail.DnBillNum, |
|
|
|
|
|
UniqueCode = default, |
|
|
|
|
|
MatchNumber = default, |
|
|
|
|
|
PjsNum = default, |
|
|
|
|
|
Configcode = default, |
|
|
|
|
|
factory = default, |
|
|
|
|
|
SubBillType = pubSeDetail.DeliverSubBillType, |
|
|
|
|
|
RealCode = default, |
|
|
|
|
|
ReMark = pubSeDetail.Remark, |
|
|
|
|
|
}; |
|
|
|
|
|
await _vmiService.Out(VmiLogType.Type400, pubSeDetail.DnBillNum, vmiLog); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|