From a119a4f733740a8907ac603cfcfd62b8d9402f6e Mon Sep 17 00:00:00 2001 From: "boxu.zheng" Date: Mon, 5 Aug 2024 09:45:01 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E5=BA=93=E4=BD=8D?= =?UTF-8?q?=E9=9B=B6=E4=BB=B6=E5=AF=B9=E5=BA=94=E5=85=B3=E7=B3=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Balances/BalanceManager.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/be/Modules/Inventory/src/Win_in.Sfs.Wms.Inventory.Domain/Balances/BalanceManager.cs b/be/Modules/Inventory/src/Win_in.Sfs.Wms.Inventory.Domain/Balances/BalanceManager.cs index 332b5cf70..d7414abd1 100644 --- a/be/Modules/Inventory/src/Win_in.Sfs.Wms.Inventory.Domain/Balances/BalanceManager.cs +++ b/be/Modules/Inventory/src/Win_in.Sfs.Wms.Inventory.Domain/Balances/BalanceManager.cs @@ -142,6 +142,11 @@ public class BalanceManager : DomainService, IBalanceManager var checkLocationTypes = settingCheckLocationTypes.GetEnumList(","); + if (location.Type is not (EnumLocationType.INSP or EnumLocationType.HOLD or EnumLocationType.TRANSPORT)) + { + return; + } + if (!checkLocationTypes.Contains(location.Type)) { return; From 1617624489d2b3e07203e026c871fdc44548eeeb Mon Sep 17 00:00:00 2001 From: "boxu.zheng" Date: Tue, 6 Aug 2024 16:45:49 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20asn=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=20=E4=BE=9B=E5=BA=94=E5=95=86=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Plans/SupplierAsns/SupplierAsnManager.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Plans/SupplierAsns/SupplierAsnManager.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Plans/SupplierAsns/SupplierAsnManager.cs index 823af80db..8f8c68dcb 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Plans/SupplierAsns/SupplierAsnManager.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Plans/SupplierAsns/SupplierAsnManager.cs @@ -13,11 +13,13 @@ namespace Win_in.Sfs.Wms.Store.Domain; public class SupplierAsnManager : SfsStoreManagerBase, ISupplierAsnManager { private readonly ISupplierAsnRepository _repository; + private readonly ISupplierAppService _supplierAppService; public SupplierAsnManager( - ISupplierAsnRepository repository) : base(repository) + ISupplierAsnRepository repository, ISupplierAppService supplierAppService) : base(repository) { _repository = repository; + _supplierAppService = supplierAppService; } #region 东阳使用 @@ -32,6 +34,9 @@ public class SupplierAsnManager : SfsStoreManagerBase Date: Tue, 6 Aug 2024 17:38:31 +0800 Subject: [PATCH 3/3] =?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); } }