From 8449356ecf6e78acc76a4524bf84f104173ca1cd Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Mon, 7 Aug 2023 17:33:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=B4=9F=E5=BA=93=E5=AD=98?= =?UTF-8?q?=E8=A1=A5=E8=B4=A7=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SettleAccount.Application/Entities/BQ/VmiAppService.cs | 4 ++++ 1 file changed, 4 insertions(+) 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); }