fix error and add CreatePurchaseOrder.cs

This commit is contained in:
2025-12-13 11:24:01 +01:00
parent 2a42e1010f
commit 35d3e58d86
8 changed files with 88 additions and 8 deletions

View File

@@ -0,0 +1,8 @@
namespace PyroFetes.DTO.PurchaseProduct.Request;
// Pour ajouter les produits lors de la création
public class CreatePurchaseOrderProductDto
{
public int ProductId { get; set; }
public int Quantity { get; set; }
}

View File

@@ -7,11 +7,11 @@ public class UpdatePurchaseProductDto
public int Quantity { get; set; }
public int ProductReferences { get; set; }
public string? ProductReferences { get; set; }
public string? ProductName { get; set; }
public decimal ProductDuration {get; set;}
public decimal ProductCaliber { get; set; }
public int ProductApprovalNumber { get; set; }
public int ProductCaliber { get; set; }
public string? ProductApprovalNumber { get; set; }
public decimal ProductWeight { get; set; }
public decimal ProductNec { get; set; }
public string? ProductImage { get; set; }

View File

@@ -6,8 +6,8 @@ public class GetPurchaseProductDto
public string? ProductReferences { get; set; }
public string? ProductName { get; set; }
public decimal ProductDuration {get; set;}
public decimal ProductCaliber { get; set; }
public int ProductApprovalNumber { get; set; }
public int ProductCaliber { get; set; }
public string? ProductApprovalNumber { get; set; }
public decimal ProductWeight { get; set; }
public decimal ProductNec { get; set; }
public string? ProductImage { get; set; }