Browse Source

寄售库人工调整接口更新

master
wanggang 1 year ago
parent
commit
aa3fb3beae
  1. 7
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/VmiAppService.cs

7
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/VmiAppService.cs

@ -311,7 +311,7 @@ public class VmiAppService : ApplicationService, IVmiService, IJobService, ITran
var log = new VmiLog var log = new VmiLog
{ {
LogType = logType, LogType = logType,
ChangedType = VmiType.In, ChangedType = VmiType.Out,
ChangedNumber = changedNumber, ChangedNumber = changedNumber,
ChangedTime = DateTime.Now, ChangedTime = DateTime.Now,
ChangedBy = _currentUser.UserName, ChangedBy = _currentUser.UserName,
@ -529,12 +529,17 @@ public class VmiAppService : ApplicationService, IVmiService, IJobService, ITran
{ {
if (log.Qty >= decimal.Zero) if (log.Qty >= decimal.Zero)
{ {
log.LogType = VmiLogType.Type500;
log.ChangedType = VmiType.In;
var data = new VmiBalance(); var data = new VmiBalance();
data.InjectFrom(log); data.InjectFrom(log);
await In(VmiLogType.Type500, null, data).ConfigureAwait(false); await In(VmiLogType.Type500, null, data).ConfigureAwait(false);
} }
else else
{ {
log.LogType = VmiLogType.Type600;
log.ChangedType = VmiType.Out;
log.Qty=-log.Qty;
await this.Out(VmiLogType.Type600, null, log).ConfigureAwait(false); await this.Out(VmiLogType.Type600, null, log).ConfigureAwait(false);
} }
} }

Loading…
Cancel
Save