forked from sanchezvem/PyroFetes
Maj Warehouse et Supplier
This commit is contained in:
@@ -1,32 +1,27 @@
|
||||
namespace API.DTO.Product.Request;
|
||||
using PyroFetes.DTO.Product.Request;
|
||||
|
||||
public class UpdateProductDto
|
||||
namespace API.DTO.Product.Request
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int References { get; set; }
|
||||
public string? Name { get; set; }
|
||||
public decimal Duration { get; set; }
|
||||
public decimal Caliber { get; set; }
|
||||
public int ApprovalNumber { get; set; }
|
||||
public decimal Weight { get; set; }
|
||||
public decimal Nec { get; set; }
|
||||
public decimal SellingPrice { get; set; }
|
||||
public string? Image { get; set; }
|
||||
public string? Link { get; set; }
|
||||
public int ClassificationId { get; set; }
|
||||
public int ProductCategoryId { get; set; }
|
||||
public class UpdateProductDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int References { get; set; }
|
||||
public string? Name { get; set; }
|
||||
public decimal Duration { get; set; }
|
||||
public decimal Caliber { get; set; }
|
||||
public int ApprovalNumber { get; set; }
|
||||
public decimal Weight { get; set; }
|
||||
public decimal Nec { get; set; }
|
||||
public decimal SellingPrice { get; set; }
|
||||
public string? Image { get; set; }
|
||||
public string? Link { get; set; }
|
||||
public int ClassificationId { get; set; }
|
||||
public int ProductCategoryId { get; set; }
|
||||
|
||||
// Liste des fournisseurs associés
|
||||
public List<ProductSupplierPriceDto> Suppliers { get; set; }
|
||||
// Liste des fournisseurs associés
|
||||
public List<ProductSupplierPriceDto> Suppliers { get; set; } = new();
|
||||
|
||||
// Liste des entrepôts associés (corrigé ici)
|
||||
public List<UpdateProductWarehouseDto> Warehouses { get; set; }
|
||||
}
|
||||
|
||||
// DTO pour la mise à jour des entrepôts liés
|
||||
public class UpdateProductWarehouseDto
|
||||
{
|
||||
public int WarehouseId { get; set; }
|
||||
public int Quantity { get; set; }
|
||||
|
||||
}
|
||||
// Liste des entrepôts associés
|
||||
public List<UpdateProductWarehouseDto> Warehouses { get; set; } = new();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user