Browse Source

更新负库存补货逻辑

master
wanggang 1 year ago
parent
commit
8449356ecf
  1. 4
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/VmiAppService.cs

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

@ -216,6 +216,10 @@ public class VmiAppService : ApplicationService, IVmiService, IJobService, ITran
{ {
await this._balanceRepository.UpdateAsync(balance).ConfigureAwait(false); await this._balanceRepository.UpdateAsync(balance).ConfigureAwait(false);
} }
if (logType == VmiLogType.Type100 && balance.Qty < decimal.Zero && data.Qty > 0)
{
log.IsReplenished = true;
}
} }
await _logRepository.InsertAsync(log).ConfigureAwait(false); await _logRepository.InsertAsync(log).ConfigureAwait(false);
} }

Loading…
Cancel
Save