From b1d2d3d1a132b631fc88d7458797ac71e55592a2 Mon Sep 17 00:00:00 2001 From: sanchezvem Date: Thu, 9 Oct 2025 17:25:48 +0200 Subject: [PATCH 1/2] Creating all QuotationProductDTO --- .../Request/CreateQuotationProductDto.cs | 23 ++++++++++++++++++ .../PatchQuotationProductQuantityDto.cs | 7 ++++++ .../Request/UpdateQuotationProductDto.cs | 24 +++++++++++++++++++ .../Response/GetQuotationProductDto.cs | 24 +++++++++++++++++++ 4 files changed, 78 insertions(+) create mode 100644 PyroFetes/DTO/QuotationProduct/Request/CreateQuotationProductDto.cs create mode 100644 PyroFetes/DTO/QuotationProduct/Request/PatchQuotationProductQuantityDto.cs create mode 100644 PyroFetes/DTO/QuotationProduct/Request/UpdateQuotationProductDto.cs create mode 100644 PyroFetes/DTO/QuotationProduct/Response/GetQuotationProductDto.cs diff --git a/PyroFetes/DTO/QuotationProduct/Request/CreateQuotationProductDto.cs b/PyroFetes/DTO/QuotationProduct/Request/CreateQuotationProductDto.cs new file mode 100644 index 0000000..0e11b5e --- /dev/null +++ b/PyroFetes/DTO/QuotationProduct/Request/CreateQuotationProductDto.cs @@ -0,0 +1,23 @@ +namespace PyroFetes.DTO.QuotationProduct.Request; + +public class CreateQuotationProductDto +{ + public int Quantity { get; set; } + + public int QuotationId { get; set; } + public string? QuotationMessage { get; set; } + public string? QuotationConditionsSale { get; set; } + + public int ProductId { get; set; } + public int ProductReferences { get; set; } + public string? ProductName { get; set; } + public decimal ProductDuration {get; set;} + public decimal ProductCaliber { get; set; } + public int ProductApprovalNumber { get; set; } + public decimal ProductWeight { get; set; } + public decimal ProductNec { get; set; } + public decimal ProductSellingPrice { get; set; } + public string? ProductImage { get; set; } + public string? ProductLink { get; set; } + public int ProductMinimalQuantity { get; set; } +} \ No newline at end of file diff --git a/PyroFetes/DTO/QuotationProduct/Request/PatchQuotationProductQuantityDto.cs b/PyroFetes/DTO/QuotationProduct/Request/PatchQuotationProductQuantityDto.cs new file mode 100644 index 0000000..2428f49 --- /dev/null +++ b/PyroFetes/DTO/QuotationProduct/Request/PatchQuotationProductQuantityDto.cs @@ -0,0 +1,7 @@ +namespace PyroFetes.DTO.QuotationProduct.Request; + +public class PatchQuotationProductQuantityDto +{ + public int Id { get; set; } + public int Quantity { get; set; } +} \ No newline at end of file diff --git a/PyroFetes/DTO/QuotationProduct/Request/UpdateQuotationProductDto.cs b/PyroFetes/DTO/QuotationProduct/Request/UpdateQuotationProductDto.cs new file mode 100644 index 0000000..46f9d6c --- /dev/null +++ b/PyroFetes/DTO/QuotationProduct/Request/UpdateQuotationProductDto.cs @@ -0,0 +1,24 @@ +namespace PyroFetes.DTO.QuotationProduct.Request; + +public class UpdateQuotationProductDto +{ + public int Id { get; set; } + public int Quantity { get; set; } + + public int QuotationId { get; set; } + public string? QuotationMessage { get; set; } + public string? QuotationConditionsSale { get; set; } + + public int ProductId { get; set; } + public int ProductReferences { get; set; } + public string? ProductName { get; set; } + public decimal ProductDuration {get; set;} + public decimal ProductCaliber { get; set; } + public int ProductApprovalNumber { get; set; } + public decimal ProductWeight { get; set; } + public decimal ProductNec { get; set; } + public decimal ProductSellingPrice { get; set; } + public string? ProductImage { get; set; } + public string? ProductLink { get; set; } + public int ProductMinimalQuantity { get; set; } +} \ No newline at end of file diff --git a/PyroFetes/DTO/QuotationProduct/Response/GetQuotationProductDto.cs b/PyroFetes/DTO/QuotationProduct/Response/GetQuotationProductDto.cs new file mode 100644 index 0000000..b910ab3 --- /dev/null +++ b/PyroFetes/DTO/QuotationProduct/Response/GetQuotationProductDto.cs @@ -0,0 +1,24 @@ +namespace PyroFetes.DTO.QuotationProduct.Response; + +public class GetQuotationProductDto +{ + public int Id { get; set; } + public int Quantity { get; set; } + + public int QuotationId { get; set; } + public string? QuotationMessage { get; set; } + public string? QuotationConditionsSale { get; set; } + + public int ProductId { get; set; } + public int ProductReferences { get; set; } + public string? ProductName { get; set; } + public decimal ProductDuration {get; set;} + public decimal ProductCaliber { get; set; } + public int ProductApprovalNumber { get; set; } + public decimal ProductWeight { get; set; } + public decimal ProductNec { get; set; } + public decimal ProductSellingPrice { get; set; } + public string? ProductImage { get; set; } + public string? ProductLink { get; set; } + public int ProductMinimalQuantity { get; set; } +} \ No newline at end of file From 15526d15893300eba1f0ddd859d164ce646843b8 Mon Sep 17 00:00:00 2001 From: sanchezvem Date: Thu, 9 Oct 2025 19:04:22 +0100 Subject: [PATCH 2/2] delete productsellingprice --- .../DTO/QuotationProduct/Request/CreateQuotationProductDto.cs | 1 - .../DTO/QuotationProduct/Request/UpdateQuotationProductDto.cs | 1 - .../DTO/QuotationProduct/Response/GetQuotationProductDto.cs | 1 - 3 files changed, 3 deletions(-) diff --git a/PyroFetes/DTO/QuotationProduct/Request/CreateQuotationProductDto.cs b/PyroFetes/DTO/QuotationProduct/Request/CreateQuotationProductDto.cs index 0e11b5e..86610d4 100644 --- a/PyroFetes/DTO/QuotationProduct/Request/CreateQuotationProductDto.cs +++ b/PyroFetes/DTO/QuotationProduct/Request/CreateQuotationProductDto.cs @@ -16,7 +16,6 @@ public class CreateQuotationProductDto public int ProductApprovalNumber { get; set; } public decimal ProductWeight { get; set; } public decimal ProductNec { get; set; } - public decimal ProductSellingPrice { get; set; } public string? ProductImage { get; set; } public string? ProductLink { get; set; } public int ProductMinimalQuantity { get; set; } diff --git a/PyroFetes/DTO/QuotationProduct/Request/UpdateQuotationProductDto.cs b/PyroFetes/DTO/QuotationProduct/Request/UpdateQuotationProductDto.cs index 46f9d6c..0247b6f 100644 --- a/PyroFetes/DTO/QuotationProduct/Request/UpdateQuotationProductDto.cs +++ b/PyroFetes/DTO/QuotationProduct/Request/UpdateQuotationProductDto.cs @@ -17,7 +17,6 @@ public class UpdateQuotationProductDto public int ProductApprovalNumber { get; set; } public decimal ProductWeight { get; set; } public decimal ProductNec { get; set; } - public decimal ProductSellingPrice { get; set; } public string? ProductImage { get; set; } public string? ProductLink { get; set; } public int ProductMinimalQuantity { get; set; } diff --git a/PyroFetes/DTO/QuotationProduct/Response/GetQuotationProductDto.cs b/PyroFetes/DTO/QuotationProduct/Response/GetQuotationProductDto.cs index b910ab3..c5a4ca0 100644 --- a/PyroFetes/DTO/QuotationProduct/Response/GetQuotationProductDto.cs +++ b/PyroFetes/DTO/QuotationProduct/Response/GetQuotationProductDto.cs @@ -17,7 +17,6 @@ public class GetQuotationProductDto public int ProductApprovalNumber { get; set; } public decimal ProductWeight { get; set; } public decimal ProductNec { get; set; } - public decimal ProductSellingPrice { get; set; } public string? ProductImage { get; set; } public string? ProductLink { get; set; } public int ProductMinimalQuantity { get; set; }