diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/VmiAppService.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/VmiAppService.cs index ca88eca7..c9dfd300 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/VmiAppService.cs +++ b/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); } + if (logType == VmiLogType.Type100 && balance.Qty < decimal.Zero && data.Qty > 0) + { + log.IsReplenished = true; + } } await _logRepository.InsertAsync(log).ConfigureAwait(false); }