using System.ComponentModel.DataAnnotations.Schema;
namespace EgwCoreLib.Lux.Core.RestPayload
{
public class BomItemDTO
{
public string ClassCode { get; set; } = "";
public string DescriptionCode { get; set; } = "";
public string ItemCode { get; set; } = "";
///
/// Quantità articolo (anche frazionaria) x calcolo moltiplicativo
///
public double Qty { get; set; } = 0;
///
/// Prezzo (SE ricevuto dalla BOM, altrimenti zero)
///
public double Price { get; set; } = 0;
///
/// Prezzo Effettivo (dalla BOM o recuperato da anagrafica ITEMS)
///
public double PriceEff { get; set; } = 0;
public int ItemID { get; set; } = 0;
///
/// Numero Item
///
public int ItemQty { get; set; } = 0;
///
/// Volume relativo (m3)
///
public double Volume { get; set; } = 0;
///
/// Importo calcolato come prezzo x quantità
///
[NotMapped]
public double TotalCost
{
get => PriceEff * Qty;
}
}
}