using System.ComponentModel.DataAnnotations.Schema; namespace Distribution.Models { public class PriceListItem : Template { public Guid FK_PriceListId { get; set; } [ForeignKey("FK_PriceListId")] public PriceList PriceList { get; set; } public Guid FK_ItemId { get; set; } [ForeignKey("FK_ItemId")] public Item Item { get; set; } public decimal Price { get; set; } /// /// Floor price for negotiation. Null = no negotiation allowed, Price is fixed. /// Must be less than or equal to Price when set. /// public decimal? MinPrice { get; set; } /// /// MRP — the price the store is expected to charge the end consumer. Informational (not /// enforced on sales), but must be >= Price so the store always has a positive margin. /// Null = not tracked for this item/list. /// public decimal? RetailPrice { get; set; } /// /// The regional agency's commission, as a percentage (0-100) of Price, for operating /// distribution in that region. Informational — used for agency settlement/payout /// reporting, not enforced on sales. Null = not tracked for this item/list. /// public decimal? AgencyMarginPercent { get; set; } } }