Refactor sales pipeline: ShopPO, Invoice, SysConfig models
Major refactor replacing Sale/Order with ShopPO → Invoice → LoadingSheet flow. Removed legacy Sale/Order models and features; introduced ShopPO, ShopPOItem, Invoice, LoadingSheetOrder, and SysConfig models. Updated related entities, enums, repositories, and controllers. Added new migrations for schema changes and system config. Overhauled business logic and DI registrations. Updated documentation with migration plan.
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Distribution.Models
|
||||
{
|
||||
public class ShopPO : Template
|
||||
{
|
||||
public Guid FK_StoreId { get; set; }
|
||||
[ForeignKey("FK_StoreId")]
|
||||
public Store Store { get; set; }
|
||||
|
||||
public Guid RaisedById { get; set; }
|
||||
|
||||
public Guid? InvoiceId { get; set; }
|
||||
|
||||
public decimal TotalAmount { get; set; }
|
||||
public ShopPOStatus Status { get; set; } = ShopPOStatus.Pending;
|
||||
|
||||
public DateTime? ConfirmedAt { get; set; }
|
||||
public Guid? ConfirmedBy { get; set; }
|
||||
|
||||
public DateTime? FulfilledAt { get; set; }
|
||||
|
||||
public ICollection<ShopPOItem> Items { get; set; } = new List<ShopPOItem>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user