Gremlin/Gremlin_BlazorServer/Data/EntityClasses/LineItem.cs

46 lines
1.6 KiB
C#

namespace Gremlin_BlazorServer.Data.EntityClasses;
public class LineItem : IMetadata {
//primary key:
public uint LineItemId { get; set; }
//foreign keys:
public uint QuoteId { get; set; }
public uint? ProductId { get; set; }
// public uint CustomDescriptionId { get; set; }
//navigation properties:
public Quote? Quote { get; set; }
public Product? Product { get; set; }
// public CustomDescription? CustomDescription { get; set; }
//class properties:
public ushort Position { get; set; }
public ushort Amount { get; set; }
public string? ProductNumber { get; set; }
public string? OptionNumber { get; set; }
public string? SapShortDescription { get; set; }
public string? SapLongDescription { get; set; }
public string? ProductLine { get; set; }
public decimal TotalDiscount { get; set; }
public decimal SalesDiscount { get; set; }
public decimal PromotionalDiscount { get; set; }
public decimal ContractualDiscount { get; set; }
public decimal DemoDiscount { get; set; }
public decimal ListPrice { get; set; }
public decimal ExtendedListPrice { get; set; }
public decimal NetPrice { get; set; }
public decimal Total { get; set; }
//metadata:
public DateTime DataCreationDate { get; set; } = DateTime.Now;
public string DataModificationByUser { get; set; } = "Gremlin_BlazorServer";
public DateTime DataModificationDate { get; set; } = DateTime.Now;
public string DataStatus { get; set; } = "Active";
public DateTime DataValidFrom { get; set; } = DateTime.Now;
public DateTime DataValidUntil { get; set; } = DateTime.MaxValue;
public string? DataVersionComment { get; set; }
public uint DataVersionNumber { get; set; }
}