Add pricing and supplier master data

This commit is contained in:
2026-08-20 17:28:55 +05:30
parent 7a2494c156
commit 63bc6e9cd8
26 changed files with 6138 additions and 9 deletions
+18
View File
@@ -0,0 +1,18 @@
using System.ComponentModel.DataAnnotations.Schema;
namespace Distribution.Models
{
public class PriceList : Template
{
public string Name { get; set; }
public Guid? FK_RegionId { get; set; }
[ForeignKey("FK_RegionId")]
public Region? Region { get; set; }
public DateTime EffectiveFrom { get; set; }
public DateTime EffectiveTo { get; set; }
public ICollection<PriceListItem> Items { get; set; } = [];
}
}
+23
View File
@@ -0,0 +1,23 @@
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; }
}
}
+11
View File
@@ -0,0 +1,11 @@
namespace Distribution.Models
{
public class Supplier : Template
{
public string Name { get; set; }
public string? ContactInfo { get; set; }
public decimal? PerformanceScore { get; set; }
}
}