forked from sanchezvem/PyroFetes
MAJ Mathilde
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
using PyroFetes.Models;
|
||||
|
||||
namespace PyroFetes.DTO.Product.Request;
|
||||
namespace API.DTO.Product.Request;
|
||||
|
||||
public class CreateProductDto
|
||||
{
|
||||
@@ -11,11 +9,28 @@ public class CreateProductDto
|
||||
public int ApprovalNumber { get; set; }
|
||||
public decimal Weight { get; set; }
|
||||
public decimal Nec { get; set; }
|
||||
public decimal SellingPrice {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 liés au produit
|
||||
public List<ProductSupplierPriceDto>? Suppliers { get; set; }
|
||||
|
||||
// Liste des entrepôts liés au produit (ajoutée ici)
|
||||
public List<CreateProductWarehouseDto>? Warehouses { get; set; }
|
||||
}
|
||||
|
||||
public class ProductSupplierPriceDto
|
||||
{
|
||||
public int SupplierId { get; set; }
|
||||
public decimal SellingPrice { get; set; }
|
||||
}
|
||||
|
||||
public class CreateProductWarehouseDto
|
||||
{
|
||||
public int WarehouseId { get; set; }
|
||||
public int Quantity { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user