forked from sanchezvem/PyroFetes
MAJ Mathilde
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
using PyroFetes.Models;
|
||||
using API.DTO.Product.Request;
|
||||
|
||||
namespace PyroFetes.DTO.Product.Response;
|
||||
namespace API.DTO.Product.Response;
|
||||
|
||||
public class GetProductDto
|
||||
{
|
||||
@@ -12,12 +12,30 @@ public class GetProductDto
|
||||
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 string? ClassificationLabel { get; set; }
|
||||
public int ClassificationId { get; set; }
|
||||
public int ProductCategoryId { get; set; }
|
||||
public string? ProductCategoryLabel { get; set; }
|
||||
|
||||
|
||||
// Liste des fournisseurs liés avec leur prix de vente
|
||||
public List<ProductSupplierPriceDto> Suppliers { get; set; }
|
||||
|
||||
public List<GetProductWarehouseDto> Warehouses { get; set; } = new();
|
||||
}
|
||||
|
||||
|
||||
public class GetProductSupplierDto
|
||||
{
|
||||
public int SupplierId { get; set; }
|
||||
public string SupplierName { get; set; } = string.Empty;
|
||||
public decimal SellingPrice { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class GetProductWarehouseDto
|
||||
{
|
||||
public int WarehouseId { get; set; }
|
||||
public string WarehouseName { get; set; } = string.Empty;
|
||||
public int Quantity { get; set; }
|
||||
}
|
Reference in New Issue
Block a user