38 lines
1.4 KiB
C#
38 lines
1.4 KiB
C#
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; }
|
|
|
|
/// <summary>
|
|
/// Floor price for negotiation. Null = no negotiation allowed, Price is fixed.
|
|
/// Must be less than or equal to Price when set.
|
|
/// </summary>
|
|
public decimal? MinPrice { get; set; }
|
|
|
|
/// <summary>
|
|
/// 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.
|
|
/// </summary>
|
|
public decimal? RetailPrice { get; set; }
|
|
|
|
/// <summary>
|
|
/// 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.
|
|
/// </summary>
|
|
public decimal? AgencyMarginPercent { get; set; }
|
|
}
|
|
}
|