Files
lux/EgwCoreLib.Lux.Core/RestPayload/BomItemDTO.cs
T
2025-11-06 10:54:09 +01:00

50 lines
1.4 KiB
C#

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