namespace ERPCore.Domain.Entities;

/// <summary>
/// Count line (FR-STK-08). <see cref="SystemQty"/> is the immutable snapshot;
/// <see cref="Variance"/> = counted − system (in base UOM). Model: docs/10 Part C.6.
/// </summary>
public class StockCountLine
{
    public int CountLineId { get; set; }

    public int CountId { get; set; }
    public StockCount? Count { get; set; }

    public int ItemId { get; set; }
    public Item? Item { get; set; }

    public int? BinId { get; set; }

    public decimal SystemQty { get; set; }
    public decimal? CountedQty { get; set; }
    public decimal? Variance { get; set; }
}
