namespace ERPCore.Domain.Entities;

/// <summary>
/// Adjustment line (FR-STK-07). <see cref="QtyDelta"/> is a signed base-UOM
/// quantity: negative consumes FIFO layers, positive creates a layer at last cost.
/// Model: docs/10 Part C.6.
/// </summary>
public class StockAdjustmentLine
{
    public int AdjLineId { get; set; }

    public int AdjustmentId { get; set; }
    public StockAdjustment? Adjustment { get; set; }

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

    public int? BinId { get; set; }
    public int? BatchId { get; set; }
    public int? SerialId { get; set; }

    public decimal QtyDelta { get; set; }
}
