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; 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 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); } }