mahao 1 year ago
parent
commit
045e0a5c9e
  1. 35
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/JitSeSyncAppService.cs

35
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/JitSeSyncAppService.cs

@ -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);
}
}
} }
} }
} }

Loading…
Cancel
Save