Aggiunta migration x gestione numero ProdItems da gestire su offerte e ordini
This commit is contained in:
@@ -117,6 +117,16 @@ namespace EgwCoreLib.Lux.Data.DbModel.Sales
|
||||
{
|
||||
get => OfferRowNav?.Sum(x => x.Qty) ?? 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Numero ProdItem compresi
|
||||
/// </summary>
|
||||
[NotMapped]
|
||||
public double NumProdItems
|
||||
{
|
||||
get => OfferRowNav?.Sum(x => x.ProdItemQty) ?? 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Numero Item compresi
|
||||
/// </summary>
|
||||
|
||||
@@ -170,6 +170,11 @@ namespace EgwCoreLib.Lux.Data.DbModel.Sales
|
||||
/// </summary>
|
||||
public string ItemTags { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
/// Quantità degli item da produrre (es parti del serramento, singole parti BTL...)
|
||||
/// </summary>
|
||||
public int ProdItemQty { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// Riferimento JobID Ciclo corrente (tra quelli ammissibili dato ItemJCD)
|
||||
/// </summary>
|
||||
|
||||
@@ -113,6 +113,7 @@ namespace EgwCoreLib.Lux.Data.DbModel.Sales
|
||||
/// Sconto applicato (deve essere < del MAX)
|
||||
/// </summary>
|
||||
public double Discount { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// Numero Item compresi
|
||||
/// </summary>
|
||||
@@ -121,6 +122,16 @@ namespace EgwCoreLib.Lux.Data.DbModel.Sales
|
||||
{
|
||||
get => OrderRowNav?.Sum(x => x.Qty) ?? 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Numero ProdItem compresi
|
||||
/// </summary>
|
||||
[NotMapped]
|
||||
public double NumProdItems
|
||||
{
|
||||
get => OrderRowNav?.Sum(x => x.ProdItemQty) ?? 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Numero Item compresi
|
||||
/// </summary>
|
||||
@@ -129,6 +140,7 @@ namespace EgwCoreLib.Lux.Data.DbModel.Sales
|
||||
{
|
||||
get => OrderRowNav?.Count ?? 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Costo totale offerta (rock bottom)
|
||||
/// </summary>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using EgwCoreLib.Lux.Data.DbModel.Items;
|
||||
using EgwCoreLib.Lux.Data.DbModel.Production;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
@@ -171,6 +172,11 @@ namespace EgwCoreLib.Lux.Data.DbModel.Sales
|
||||
/// </summary>
|
||||
public string ItemTags { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
/// Quantità degli item da produrre (es parti del serramento, singole parti BTL...)
|
||||
/// </summary>
|
||||
public int ProdItemQty { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// Riferimento JobID Ciclo corrente (tra quelli ammissibili dato ItemJCD)
|
||||
/// </summary>
|
||||
@@ -236,5 +242,10 @@ namespace EgwCoreLib.Lux.Data.DbModel.Sales
|
||||
/// </summary>
|
||||
[ForeignKey("SellingItemID")]
|
||||
public virtual SellingItemModel? SellingItemNav { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Navigazione alle righe ProdItem
|
||||
/// </summary>
|
||||
public virtual ICollection<ProductionItemModel> ProdItemNav { get; set; } = new List<ProductionItemModel>();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user