Fixed error with creation of document

This commit is contained in:
2026-05-25 12:19:05 +01:00
parent b59a8b6c3d
commit d46fa606b7
5 changed files with 9 additions and 7 deletions
@@ -44,6 +44,7 @@ public class DtoToEntityMappings : Profile
.ForMember(dest => dest.Id, opt => opt.Ignore());
CreateMap<CreatePurchaseProductDto, PurchaseProduct>();
CreateMap<CreatePurchaseOrderProductDto, PurchaseProduct>();
CreateMap<PatchPurchaseProductQuantityDto, PurchaseProduct>()
.ForMember(dest => dest.ProductId, opt => opt.Ignore())
.ForMember(dest => dest.PurchaseOrderId, opt => opt.Ignore());
@@ -52,7 +53,10 @@ public class DtoToEntityMappings : Profile
.ForMember(dest => dest.Id, opt => opt.Ignore());
CreateMap<PatchQuotationMessageDto, Quotation>()
.ForMember(dest => dest.Id, opt => opt.Ignore());
CreateMap<CreateProductQuotationDto, Quotation>();
CreateMap<CreateQuotationDto, Quotation>();
CreateMap<CreateProductQuotationDto, QuotationProduct>();
CreateMap<UpdateQuotationDto, Quotation>()
.ForMember(dest => dest.Id, opt => opt.Ignore());
CreateMap<AddQuotationProductDto, QuotationProduct>();
CreateMap<PatchQuotationProductQuantityDto, QuotationProduct>()