diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Domain/WorkCenters/WorkCenter.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Domain/WorkCenters/WorkCenter.cs index 82936e912..b44f3cea8 100644 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Domain/WorkCenters/WorkCenter.cs +++ b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Domain/WorkCenters/WorkCenter.cs @@ -10,7 +10,7 @@ namespace Win_in.Sfs.Basedata.Domain; /// public class WorkStation : SfsBaseDataAggregateRootBase, IHasCode, IHasName { - [Display(Name = "编码")] + [Display(Name = "工作中心代码")] [Required(ErrorMessage = "{0}是必填项")] [StringLength(SfsEfCorePropertyConst.CodeLength, ErrorMessage = "{0}最多输入{1}个字符")] [IgnoreUpdate] diff --git a/be/Modules/Label/src/Win_in.Sfs.Label.Application.Contracts/InventoryLabels/InventoryLabelEditInput.cs b/be/Modules/Label/src/Win_in.Sfs.Label.Application.Contracts/InventoryLabels/InventoryLabelEditInput.cs index 0a13f50ad..a6330a941 100644 --- a/be/Modules/Label/src/Win_in.Sfs.Label.Application.Contracts/InventoryLabels/InventoryLabelEditInput.cs +++ b/be/Modules/Label/src/Win_in.Sfs.Label.Application.Contracts/InventoryLabels/InventoryLabelEditInput.cs @@ -203,6 +203,7 @@ public class InventoryLabelEditInput : SfsLabelCreateOrUpdateInputBase /// [Display(Name = "供应商零件名")] public string SupplierItemName { get; set; } + #endregion #region Create @@ -219,5 +220,6 @@ public class InventoryLabelEditInput : SfsLabelCreateOrUpdateInputBase [Display(Name = "标签类型")] [Required(ErrorMessage = "{0}是必填项")] public EnumLabelType LabelType { get; set; } + #endregion } diff --git a/be/Modules/Label/src/Win_in.Sfs.Label.Application/InventoryLabels/InventoryLabelAppService.cs b/be/Modules/Label/src/Win_in.Sfs.Label.Application/InventoryLabels/InventoryLabelAppService.cs index 7daf50de2..13e0832f9 100644 --- a/be/Modules/Label/src/Win_in.Sfs.Label.Application/InventoryLabels/InventoryLabelAppService.cs +++ b/be/Modules/Label/src/Win_in.Sfs.Label.Application/InventoryLabels/InventoryLabelAppService.cs @@ -60,17 +60,14 @@ public class InventoryLabelAppService [HttpPost("many")] public virtual async Task> CreateManyAsync(List inputs) { - var codes = inputs.Select(p => p.Code).ToList(); - var existEntities = await GetByCodesAsync(codes).ConfigureAwait(false); - if (existEntities.Any()) + List inventoryLabelDtos = new List(); + + foreach (var input in inputs) { - var existCodes = existEntities.Select(p => p.Code).ToList(); - throw new UserFriendlyException($"{existCodes.JoinAsString(",")} 已存在"); + inventoryLabelDtos.Add(await CreateAsync(input)); } - var entities = ObjectMapper.Map, List>(inputs); - await Repository.InsertManyAsync(entities).ConfigureAwait(false); - var dtos = ObjectMapper.Map, List>(entities); - return dtos; + + return inventoryLabelDtos; } [HttpPost("generate-and-create")] diff --git a/be/Modules/Label/src/Win_in.Sfs.Label.Application/InventoryLabels/InventoryLabelAutoMapperProfile.cs b/be/Modules/Label/src/Win_in.Sfs.Label.Application/InventoryLabels/InventoryLabelAutoMapperProfile.cs index 49447549c..a9050e8f8 100644 --- a/be/Modules/Label/src/Win_in.Sfs.Label.Application/InventoryLabels/InventoryLabelAutoMapperProfile.cs +++ b/be/Modules/Label/src/Win_in.Sfs.Label.Application/InventoryLabels/InventoryLabelAutoMapperProfile.cs @@ -22,6 +22,16 @@ public class InventoryLabelAutoMapperProfile : Profile .Ignore(x => x.Remark) .Ignore(x => x.ExtraProperties); + CreateMap() + .IgnoreAuditedObjectProperties() + .MapQualityInfoDto() + .MapPurchaseInfoDto() + .MapProductionInfoDto() + .Ignore(x=>x.Id) + .Ignore(x => x.ConcurrencyStamp) + ; + + CreateMap() .IgnoreAuditedObjectProperties() .MapPurchaseInfoDto() diff --git a/be/Modules/Shared/src/Win_in.Sfs.Shared.Application/SfsCrudWithDetailsAppServiceBase.cs b/be/Modules/Shared/src/Win_in.Sfs.Shared.Application/SfsCrudWithDetailsAppServiceBase.cs index dfdd4e0dc..53375f171 100644 --- a/be/Modules/Shared/src/Win_in.Sfs.Shared.Application/SfsCrudWithDetailsAppServiceBase.cs +++ b/be/Modules/Shared/src/Win_in.Sfs.Shared.Application/SfsCrudWithDetailsAppServiceBase.cs @@ -6,13 +6,16 @@ using System.Linq; using System.Linq.Dynamic.Core; using System.Linq.Expressions; using System.Reflection; +using System.Security.Principal; using System.Text.Json; using System.Threading; using System.Threading.Tasks; using AutoMapper.Internal; using DocumentFormat.OpenXml.Math; +using DocumentFormat.OpenXml.Office2010.ExcelAc; using DocumentFormat.OpenXml.Spreadsheet; using DocumentFormat.OpenXml.Vml.Office; +using DocumentFormat.OpenXml.Wordprocessing; using EFCore.BulkExtensions; using JetBrains.Annotations; using Microsoft.AspNetCore.Http; @@ -328,12 +331,13 @@ public abstract class SfsCrudWithDetailsAppServiceBase [HttpPost("import")] [Consumes("multipart/form-data")] + [UnitOfWork] public virtual async Task ImportAsync([FromForm] SfsImportRequestInput requestInput, [Required] IFormFile file) { using var ms = new MemoryStream(); await file.OpenReadStream().CopyToAsync(ms).ConfigureAwait(false); var inputFileBytes = ms.GetAllBytes(); - var result = await ImportInternalAsync(requestInput, inputFileBytes).ConfigureAwait(false); + var result = await ImportInternalAsync(requestInput, inputFileBytes); var bytes = result.FileContents; result.FileContents = null; @@ -506,6 +510,7 @@ public abstract class SfsCrudWithDetailsAppServiceBase /// 导入数据具体实现,可重写 /// + [UnitOfWork] protected virtual async Task ImportInternalAsync(SfsImportRequestInput requestInput, byte[] inputFileBytes) { try @@ -550,7 +555,7 @@ public abstract class SfsCrudWithDetailsAppServiceBase p.Value == EntityState.Added).Select(p=>p.Key).ToList(); + await PublishCreatedAsync(addList).ConfigureAwait(false); // 创建导入报告 var reportFile = ExportImportService.GetImportReport(inputFileBytes, modelDict); // 创建返回值 @@ -581,7 +586,7 @@ public abstract class SfsCrudWithDetailsAppServiceBase - /// 导入数据后 发布事件 + /// 发布新增事件 /// /// /// @@ -589,7 +594,7 @@ public abstract class SfsCrudWithDetailsAppServiceBase>(entities),true).ConfigureAwait(false); + await LocalEventBus.PublishAsync(new SfsCreatedEntityEventData>(entities),false).ConfigureAwait(false); } catch (Exception ex) { @@ -612,6 +617,7 @@ public abstract class SfsCrudWithDetailsAppServiceBase /// 导入保存到数据库,可重写 /// + protected virtual async Task SaveImportAsync(Dictionary dict) { var entityList = dict.Keys.ToList(); @@ -636,6 +642,7 @@ public abstract class SfsCrudWithDetailsAppServiceBase> GetForTodayUnReceivedListAsync(); Task> GetByStartTimeEndTimeAsync(DateTime startTime, DateTime endTime); + + /// + /// 生成ASN订单号 + /// + /// + /// + Task GenerateSupplierAsnNumberAsync(DateTime activeDate); } diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Orders/PurchaseOrders/PurchaseOrderAppService.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Orders/PurchaseOrders/PurchaseOrderAppService.cs index f2fb1e64e..022ec45c0 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Orders/PurchaseOrders/PurchaseOrderAppService.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Orders/PurchaseOrders/PurchaseOrderAppService.cs @@ -3,14 +3,18 @@ using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; +using DocumentFormat.OpenXml.Office2010.ExcelAc; +using DocumentFormat.OpenXml.Spreadsheet; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Volo.Abp; +using Volo.Abp.Uow; using Win_in.Sfs.Basedata.Application.Contracts; using Win_in.Sfs.Shared.Application.Contracts; using Win_in.Sfs.Shared.Domain.Shared; +using Win_in.Sfs.Shared.Event; using Win_in.Sfs.Wms.Store.Application.Contracts; using Win_in.Sfs.Wms.Store.Domain; using Win_in.Sfs.Wms.Store.Domain.Shared; diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Orders/PurchaseOrders/PurchaseOrderAutoMapperProfile.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Orders/PurchaseOrders/PurchaseOrderAutoMapperProfile.cs index 33303b1c1..631a529f3 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Orders/PurchaseOrders/PurchaseOrderAutoMapperProfile.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Orders/PurchaseOrders/PurchaseOrderAutoMapperProfile.cs @@ -28,7 +28,8 @@ public partial class StoreApplicationAutoMapperProfile : Profile .Ignore(x => x.MasterID) .Ignore(x => x.TenantId) .Ignore(x => x.Number) - .Ignore(x => x.Id); + .Ignore(x => x.Id) + ; CreateMap() .IgnoreAuditedObjectProperties() diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Plans/SupplierAsns/SupplierAsnAppService.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Plans/SupplierAsns/SupplierAsnAppService.cs index bc8da32bf..17b1d5a0c 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Plans/SupplierAsns/SupplierAsnAppService.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Plans/SupplierAsns/SupplierAsnAppService.cs @@ -65,6 +65,18 @@ public class SupplierAsnAppService : return ObjectMapper.Map(resultEntity); } + /// + /// 生成ASN订单号 + /// + /// + /// + [HttpPost("generate-supplierasn-number")] + public async Task GenerateSupplierAsnNumberAsync(DateTime activeDate) + { + return await _supplierAsnManager.GenerateNumberAsync(nameof(SupplierAsn), Clock.Normalize(activeDate)) + .ConfigureAwait(false); + } + private async Task CreateFromFileAsync(SupplierAsnEditInput input) { var entity = ObjectMapper.Map(input); diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Bases/SfsStoreManagerBase.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Bases/SfsStoreManagerBase.cs index 50e6c6a1b..8c152916d 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Bases/SfsStoreManagerBase.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Bases/SfsStoreManagerBase.cs @@ -121,7 +121,7 @@ public abstract class SfsStoreManagerBase { try { - await LocalEventBus.PublishAsync(new SfsCreatedEntityEventData(entity)).ConfigureAwait(false); + await LocalEventBus.PublishAsync(new SfsCreatedEntityEventData(entity),false).ConfigureAwait(false); } catch (Exception ex) { @@ -136,7 +136,7 @@ public abstract class SfsStoreManagerBase { try { - await LocalEventBus.PublishAsync(new SfsCreatedEntityEventData>(entities)).ConfigureAwait(false); + await LocalEventBus.PublishAsync(new SfsCreatedEntityEventData>(entities),false).ConfigureAwait(false); } catch (Exception ex) { diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Orders/PurchaseOrderEventHandler.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Orders/PurchaseOrderEventHandler.cs index c316d8ee7..7253b1d63 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Orders/PurchaseOrderEventHandler.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Orders/PurchaseOrderEventHandler.cs @@ -1,7 +1,10 @@ using System; using System.Collections.Generic; using System.Linq; +using System.Net.Http; using System.Threading.Tasks; +using Castle.Components.DictionaryAdapter; +using Volo.Abp; using Volo.Abp.EventBus; using Volo.Abp.Uow; using Win_in.Sfs.Basedata.Application.Contracts; @@ -13,6 +16,8 @@ using Win_in.Sfs.Shared.Event; using Win_in.Sfs.Wms.Inventory.Domain.Acl.ItemBasic; using Win_in.Sfs.Wms.Store.Application.Contracts; using Win_in.Sfs.Wms.Store.Domain; +using static Win_in.Sfs.Wms.Store.Domain.Shared.StoreSettings; +using SupplierAsn = Win_in.Sfs.Wms.Store.Domain.SupplierAsn; namespace Win_in.Sfs.Wms.Store.Event.Orders; @@ -27,13 +32,19 @@ public class PurchaseOrderEventHandler private readonly IItemPackAppService _itemPackAppService; private readonly ISupplierItemAppService _supplierItemAppService; private readonly IDockAppService _dockAppService; + private readonly IInventoryLabelAppService _inventoryLabelAppService; + private readonly ISupplierAppService _supplierAppService; + public PurchaseOrderEventHandler(ISupplierAsnAppService supplierAsnAppService, ILabelDefinitionAppService labelDefinitionAppService, IItemBasicAppService itemBasicAppService, IItemPackAppService itemPackAppService, ISupplierItemAppService supplierItemAppService, - IDockAppService dockAppService) + IDockAppService dockAppService, + IInventoryLabelAppService inventoryLabelAppService, + IPurchaseOrderManager purchaseOrderManager, + ISupplierAppService supplierAppService) { _supplierAsnAppService = supplierAsnAppService; _labelDefinitionAppService = labelDefinitionAppService; @@ -41,6 +52,8 @@ public class PurchaseOrderEventHandler _itemPackAppService = itemPackAppService; _supplierItemAppService = supplierItemAppService; _dockAppService = dockAppService; + _inventoryLabelAppService = inventoryLabelAppService; + _supplierAppService = supplierAppService; } //创建采购订单 @@ -81,7 +94,7 @@ public class PurchaseOrderEventHandler //收货口 //todo 处理有问题是否要和供应商关联 var dock = await _dockAppService.GetAllListByFilterAsync( - new SfsBaseDataRequestInputBase() { Condition = new Condition(), MaxResultCount = 99, SkipCount = 0, Sorting = string.Empty }, true).ConfigureAwait(false); + new SfsBaseDataRequestInputBase() { Condition = new Condition(){Filters = new List()}, MaxResultCount = 99, SkipCount = 0, Sorting = string.Empty }, true).ConfigureAwait(false); supplierAsnEditInput.DockCode = dock.First().Code; //要货单号 @@ -90,10 +103,8 @@ public class PurchaseOrderEventHandler //生效日期 supplierAsnEditInput.ActiveDate = Clock.Now; - //一次性返回所有箱码 - var generateManyAsync =await _labelDefinitionAppService - .GenerateManyAsync(EnumLabelType.PurchaseLabel.ToString(), Clock.Now.ToString(SharedConst.TimeFormat), - supplierAsnEditInput.Details.Count).ConfigureAwait(false); + //发货单号 + supplierAsnEditInput.Number = await _supplierAsnAppService.GenerateSupplierAsnNumberAsync(supplierAsnEditInput.ActiveDate).ConfigureAwait(false); //所有的物品Code var itemCodes = purchaseOrder.Details.GroupBy(p => p.ItemCode).Select(p => p.Key); @@ -103,6 +114,11 @@ public class PurchaseOrderEventHandler var ItemPacks = new List();//一次性返回所有物品包装信息 var supplierItemDtos = new List();//一次性返回所有供应商物品信息 + //一次性返回所有箱码 + var generateManyAsync = await _labelDefinitionAppService + .GenerateManyAsync(EnumLabelType.PurchaseLabel.ToString(), Clock.Now.ToString(SharedConst.TimeFormat), + supplierAsnEditInput.Details.Count).ConfigureAwait(false); + foreach (var itemCode in itemCodes)//查询 { var itemPackDtos = await _itemPackAppService.GetListByItemCodeAsync(itemCode).ConfigureAwait(false); @@ -116,7 +132,7 @@ public class PurchaseOrderEventHandler supplierAsnEditInput.Details.ForEach(detail => { //添加箱码 - var pakcingCode=generateManyAsync.First(); + var pakcingCode = generateManyAsync.First(); detail.PackingCode = pakcingCode; generateManyAsync.Remove(pakcingCode); @@ -137,8 +153,95 @@ public class PurchaseOrderEventHandler detail.SupplierPackUom= supplierItemDto.SupplierPackUom; }); + //赋值箱码 创建箱码 + var supplierDto= await _supplierAppService.GetByCodeAsync(supplierAsnEditInput.SupplierCode).ConfigureAwait(false); + await CreateLabelAsync(supplierAsnEditInput, supplierDto,itemBasicDtos,supplierItemDtos).ConfigureAwait(false); + return supplierAsnEditInput; } + //创建 发货标签 + private async Task CreateLabelAsync(SupplierAsnEditInput supplierAsnEditInput, SupplierDTO supplierDtos, + List itemBasicDtos, List supplierItemDtos) + { + var inventoryLabelDtos = new List(); + + foreach (var supplierAsnDetail in supplierAsnEditInput.Details) + { + var supplierDto= supplierDtos; + var itemBasicDto = itemBasicDtos.First(p => p.Code == supplierAsnDetail.ItemCode); + var supplierItemDto= supplierItemDtos.First(p => + p.ItemCode == supplierAsnDetail.ItemCode && p.SupplierCode == supplierAsnEditInput.SupplierCode); + + var inputLabel = await BuildInventoryLabelCreateInputAsync(supplierAsnEditInput, supplierAsnDetail,supplierDto, itemBasicDto,supplierItemDto).ConfigureAwait(false); + inventoryLabelDtos.Add(inputLabel); + await _inventoryLabelAppService.CreateAsync(inputLabel).ConfigureAwait(false); + } + } + + //构造 采购标签 + private async Task BuildInventoryLabelCreateInputAsync(SupplierAsnEditInput supplierAsn, + SupplierAsnDetailInput supplierAsnDetail, + SupplierDTO supplierDto, + ItemBasicDTO itemBasicDto, + SupplierItemDTO supplierItemDto + ) + { + if (itemBasicDto == null) + { + throw new UserFriendlyException($"{supplierAsnDetail.ItemCode}物品信息为空"); + } + + if (supplierDto == null) + { + throw new UserFriendlyException($"{supplierAsn.SupplierCode}供应商为空"); + } + + if (supplierItemDto == null) + { + throw new UserFriendlyException($"{supplierAsn.SupplierCode}供应商零件或{supplierItemDto.ItemCode}物品信息为空"); + } + + var inputLabel = new InventoryLabelEditInput() + { + LabelType = EnumLabelType.PurchaseLabel, + ArriveDate = DateTime.Now, + Qty = supplierAsnDetail.Qty, + PoNumber = supplierAsnDetail.PoNumber, + Uom = supplierAsnDetail.Uom, + ItemDesc2 = itemBasicDto.Desc2, + AsnNumber = supplierAsn.Number, + ItemCode = supplierAsnDetail.ItemCode, + ItemName = supplierAsnDetail.ItemName, + ItemDesc1 = itemBasicDto.Desc1, + SupplierBatch = supplierAsnDetail.SupplierBatch, + ProduceDate = supplierAsnDetail.ProduceDate, + ExpireDate = DateTime.Now.AddDays(itemBasicDto.GetValidateDays()), + FullBarcodeString = supplierAsnDetail.PackingCode, + ExtraProperties = { }, + LabelStatus = LabelStatus.Enable, + LocationErpCode = supplierAsnDetail.RecommendErpCode, + Lot = supplierAsnDetail.Lot, + RecommendLocationCode = supplierAsnDetail.RecommendErpCode, + Remark = supplierAsnDetail.Remark, + Specifications = itemBasicDto.Color, + StdPackQty = supplierAsnDetail.StdPackQty, + SupplierCode = supplierAsn.SupplierCode, + SupplierItemCode = supplierItemDto.SupplierItemCode, + SupplierItemName = supplierItemDto.ItemName, + SupplierName = supplierDto.Name, + SupplierSimpleName = supplierDto.ShortName, + Team = null, + ProdLine = null, + QLevel = null, + QualityFile = null, + RpNumber = null, + Shift = null, + ContainerCode = null, + Code = supplierAsnDetail.PackingCode + }; + return inputLabel; + } + #endregion } diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Plans/SupplierAsnEventHandler.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Plans/SupplierAsnEventHandler.cs index ba415296d..2c46d6e0c 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Plans/SupplierAsnEventHandler.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Plans/SupplierAsnEventHandler.cs @@ -23,7 +23,7 @@ public class SupplierAsnEventHandler , ILocalEventHandler>> { - private readonly IPurchaseReceiptRequestAppService _purchaseReceiptRequestAppService; + //private readonly IPurchaseReceiptRequestAppService _purchaseReceiptRequestAppService; private readonly IPurchaseOrderAppService _purchaseOrderAppService; private readonly ISupplierItemAppService _supplierItemAppService; private readonly IInventoryLabelAppService _inventoryLabelService; @@ -37,7 +37,7 @@ public class SupplierAsnEventHandler ISupplierAppService supplierAppService ) { - _purchaseReceiptRequestAppService = purchaseReceiptRequestAppService; + //_purchaseReceiptRequestAppService = purchaseReceiptRequestAppService; _purchaseOrderAppService = purchaseOrderAppService; _supplierItemAppService = supplierItemAppService; _inventoryLabelService = inventoryLabelService; @@ -58,7 +58,7 @@ public class SupplierAsnEventHandler { case EnumSupplierAsnCreateType.Import: //创建标签 - await CreateLabelAsync(entity).ConfigureAwait(false); + //await CreateLabelAsync(entity).ConfigureAwait(false); break; case EnumSupplierAsnCreateType.AppService: case EnumSupplierAsnCreateType.ExternalInterface: @@ -92,7 +92,7 @@ public class SupplierAsnEventHandler await CreatePurchaseOrderAsync(supplierAsn).ConfigureAwait(false); //创建标签 - await CreateLabelAsync(supplierAsn).ConfigureAwait(false); + //await CreateLabelAsync(supplierAsn).ConfigureAwait(false); break; case EnumSupplierAsnCreateType.AppService: case EnumSupplierAsnCreateType.ExternalInterface: @@ -122,7 +122,7 @@ public class SupplierAsnEventHandler { var input = BuildPurchaseReceiptRequestCreateInput(supplierAsn); - await _purchaseReceiptRequestAppService.CreateAsync(input).ConfigureAwait(false); + //await _purchaseReceiptRequestAppService.CreateAsync(input).ConfigureAwait(false); } }