From f1b50bd526480b3199117364a9fc20ca961a94cf Mon Sep 17 00:00:00 2001 From: "boxu.zheng" Date: Tue, 6 Aug 2024 17:38:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E4=B8=8D=E5=90=88?= =?UTF-8?q?=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PurchaseReceiptNoteEventHandler.cs | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Transactions/PurchaseReceiptNoteEventHandler.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Transactions/PurchaseReceiptNoteEventHandler.cs index c7420ea39..c784d058a 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Transactions/PurchaseReceiptNoteEventHandler.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Transactions/PurchaseReceiptNoteEventHandler.cs @@ -143,18 +143,14 @@ public class PurchaseReceiptNoteEventHandler private async Task CreateTransactionsAsync(PurchaseReceiptNote entity, Dictionary dictionary) { - if (entity.Details.Any(p => - p.PurchaseReceiptInspectStatus == EnumPurchaseReceiptInspect.OK)) - { - var inboundTransactions = new List(); + var inboundTransactions = new List(); - //创建需要创建库存的 库存事务 - inboundTransactions.AddRange(await BuildTransactionsAsync(entity, dictionary).ConfigureAwait(false)); + //创建需要创建库存的 库存事务 + inboundTransactions.AddRange(await BuildTransactionsAsync(entity, dictionary).ConfigureAwait(false)); - if (inboundTransactions.Any()) - { - await TransactionAppService.AddManyAsync(inboundTransactions).ConfigureAwait(false); - } + if (inboundTransactions.Any()) + { + await TransactionAppService.AddManyAsync(inboundTransactions).ConfigureAwait(false); } }