Add procurement domain models (PurchaseOrder, GoodsReceipt, PurchaseReturn)

This commit is contained in:
2026-08-24 16:51:22 +05:30
parent ac1b2fbc4b
commit c8d23afe59
7 changed files with 136 additions and 1 deletions
+19
View File
@@ -0,0 +1,19 @@
using System.ComponentModel.DataAnnotations.Schema;
namespace Distribution.Models
{
public class PurchaseOrder : Template
{
public Guid FK_SupplierId { get; set; }
[ForeignKey("FK_SupplierId")]
public Supplier Supplier { get; set; }
public Guid FK_CreatedByUserId { get; set; }
public PurchaseOrderStatus Status { get; set; } = PurchaseOrderStatus.Issued;
public string? CancelReason { get; set; }
public ICollection<PurchaseOrderItem> Items { get; set; } = [];
}
}