Add GRN batch and serial tracking

This commit is contained in:
2026-10-06 13:26:17 +05:30
parent d578cbad20
commit a8725bc473
9 changed files with 427 additions and 49 deletions
+8 -2
View File
@@ -4,9 +4,15 @@ namespace Distribution.Models
{
public class GoodsReceipt : Template
{
public Guid FK_PurchaseOrderId { get; set; }
/// <summary>Null for a direct receipt (goods received without a purchase order).</summary>
public Guid? FK_PurchaseOrderId { get; set; }
[ForeignKey("FK_PurchaseOrderId")]
public PurchaseOrder PurchaseOrder { get; set; }
public PurchaseOrder? PurchaseOrder { get; set; }
/// <summary>Optional supplier for a direct receipt; for PO receipts the supplier comes from the PO.</summary>
public Guid? FK_SupplierId { get; set; }
[ForeignKey("FK_SupplierId")]
public Supplier? Supplier { get; set; }
public Guid FK_ReceivedByUserId { get; set; }